import 'package:flutter/widgets.dart'; /// Opens a run's detail from inside a chat (a `show_run` card). The app shell /// provides it above every chat surface; without one a run card is not /// activatable. class ChatRunOpener extends InheritedWidget { const ChatRunOpener({super.key, required this.openRun, required super.child}); final ValueChanged openRun; static ValueChanged? maybeOf(BuildContext context) => context.dependOnInheritedWidgetOfExactType()?.openRun; @override bool updateShouldNotify(ChatRunOpener oldWidget) => openRun != oldWidget.openRun; }