AgentationState class
Immutable state snapshot of the Agentation inspection system.
- Annotations
Constructors
- AgentationState({InspectionMode mode = InspectionMode.inactive, AnnotationToolMode toolMode = AnnotationToolMode.pointer, ToolbarSettings settings = const ToolbarSettings(), WidgetInspectionResult? selectedResult, WidgetInspectionResult? hoveredResult, HierarchicalInspectionResult? activeHierarchy, Offset toolbarOffset = Offset.zero, Rect? toolbarBounds, Rect? popupBounds, Rect? flyoutBounds, bool isToolbarMinimized = false, bool isFrozen = false, bool areCommentsVisible = true, bool isSettingsOpen = false, bool isLayoutModeOpen = false})
-
const
Properties
- activeHierarchy → HierarchicalInspectionResult?
-
The active multi-level hierarchy (ancestors, primary, children) for the current selection.
final
- areCommentsVisible → bool
-
Whether comments and annotation pins are displayed on the page.
final
- flyoutBounds → Rect?
-
Current bounding box of the active flyout panel (Layout Mode palette or Settings panel) on screen.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- hoveredResult → WidgetInspectionResult?
-
The candidate widget currently under the hover cursor (desktop/web).
final
- isFrozen → bool
-
Whether in-flight animations and tickers in the host tree are paused.
final
- isInactive → bool
-
Whether inspection is completely inactive (gesture passthrough).
no setter
- isInspecting → bool
-
Whether inspection is actively intercepting events.
no setter
- isLayoutModeOpen → bool
-
Whether layout mode / component palette is currently open.
final
- isPaused → bool
-
Whether inspection is paused.
no setter
- isSettingsOpen → bool
-
Whether the settings panel is currently open.
final
- isToolbarMinimized → bool
-
Whether the floating toolbar is collapsed.
final
- mode → InspectionMode
-
The current inspection mode.
final
- popupBounds → Rect?
-
Current bounding box of the active annotation popup on screen.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- selectedResult → WidgetInspectionResult?
-
The currently selected widget inspection result.
final
- settings → ToolbarSettings
-
User preferences and configuration state for the inspection overlay and toolbar.
final
- toolbarBounds → Rect?
-
Current bounding box of the floating toolbar on screen.
final
- toolbarOffset → Offset
-
Current coordinate offset of the floating toolbar.
final
- toolMode → AnnotationToolMode
-
The active interaction tool mode (pointer, area, multiSelect, draw, design).
final
Methods
-
copyWith(
{InspectionMode? mode, AnnotationToolMode? toolMode, ToolbarSettings? settings, WidgetInspectionResult? selectedResult()?, WidgetInspectionResult? hoveredResult()?, HierarchicalInspectionResult? activeHierarchy()?, Offset? toolbarOffset, Rect? toolbarBounds()?, Rect? popupBounds()?, Rect? flyoutBounds()?, bool? isToolbarMinimized, bool? isFrozen, bool? areCommentsVisible, bool? isSettingsOpen, bool? isLayoutModeOpen}) → AgentationState - Creates a copy of this state with specified fields replaced.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override