import 'package:flutter/widgets.dart'; class AgentPanelPresentation extends InheritedWidget { const AgentPanelPresentation({ super.key, required this.compact, this.expanded = false, this.onToggleExpanded, this.onDock, required super.child, }); final bool compact; final bool expanded; final VoidCallback? onToggleExpanded; final VoidCallback? onDock; static AgentPanelPresentation? of(BuildContext context) => context.dependOnInheritedWidgetOfExactType(); static bool compactOf(BuildContext context) => context .dependOnInheritedWidgetOfExactType() ?.compact ?? false; @override bool updateShouldNotify(AgentPanelPresentation oldWidget) => compact != oldWidget.compact || expanded != oldWidget.expanded; }