InspectorController class

Constructors

InspectorController({bool isEnabled = true, bool isWidgetInspectorEnabled = true, bool isWidgetInspectAndCompareEnabled = true, bool isColorPickerEnabled = true, bool isColorSchemeHintEnabled = true, bool isZoomEnabled = true, int decimalPlaces = 1, InspectorTheme theme = InspectorTheme.defaults, List<LogicalKeyboardKey>? widgetInspectorShortcuts, List<LogicalKeyboardKey>? widgetInspectAndCompareShortcuts, List<LogicalKeyboardKey>? colorPickerShortcuts, List<LogicalKeyboardKey>? zoomShortcuts, List<ShortcutActivator>? widgetInspectorShortcutActivators, List<ShortcutActivator>? widgetInspectAndCompareShortcutActivators, List<ShortcutActivator>? colorPickerShortcutActivators, List<ShortcutActivator>? zoomShortcutActivators})

Properties

byteDataStateNotifier ValueNotifier<ByteData?>
final
colorPickerShortcutActivators List<ShortcutActivator>?
final
colorPickerShortcuts List<LogicalKeyboardKey>?
final
comparedRenderBoxNotifier ValueNotifier<BoxInfo?>
final
currentRenderBoxNotifier ValueNotifier<BoxInfo?>
final
decimalPlaces int
final
effectiveColorPickerShortcutActivators List<ShortcutActivator>
no setter
effectiveWidgetInspectAndCompareShortcutActivators List<ShortcutActivator>
no setter
effectiveWidgetInspectorShortcutActivators List<ShortcutActivator>
no setter
effectiveZoomShortcutActivators List<ShortcutActivator>
no setter
hashCode int
The hash code for this object.
no setterinherited
hoveredRenderBoxNotifier ValueNotifier<BoxInfo?>
final
ignoringPointerKey GlobalKey<State<StatefulWidget>>
final
image Image?
no setter
isColorPickerEnabled bool
final
isColorSchemeHintEnabled bool
final
isEnabled bool
final
isWidgetInspectAndCompareEnabled bool
final
isWidgetInspectorEnabled bool
final
isZoomEnabled bool
final
maxZoomScale double
no setter
minZoomScale double
no setter
modeNotifier ValueNotifier<InspectorMode>
final
repaintBoundaryKey GlobalKey<State<StatefulWidget>>
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
selectedColorImageOffsetNotifier ValueNotifier<Offset?>
final
selectedColorOffsetNotifier ValueNotifier<Offset?>
final
selectedColorStateNotifier ValueNotifier<Color?>
final
stackKey GlobalKey<State<StatefulWidget>>
final
stateNotifier ValueNotifier<InspectorUiState>
Consolidated sealed-state view. Updated automatically whenever any of the legacy granular notifiers changes.
final
theme InspectorTheme
final
widgetInspectAndCompareShortcutActivators List<ShortcutActivator>?
final
widgetInspectAndCompareShortcuts List<LogicalKeyboardKey>?
final
widgetInspectorShortcutActivators List<ShortcutActivator>?
final
widgetInspectorShortcuts List<LogicalKeyboardKey>?
Deprecated. Use widgetInspectorShortcutActivators — it supports multi-key chords and the full ShortcutActivator API. Will be removed in 5.1.0.
final
zoomImageOffsetNotifier ValueNotifier<Offset?>
final
zoomOverlayOffsetNotifier ValueNotifier<Offset?>
final
zoomScaleNotifier ValueNotifier<double>
final
zoomShortcutActivators List<ShortcutActivator>?
final
zoomShortcuts List<LogicalKeyboardKey>?
final

Methods

acceptsColorPickerShortcut(KeyEvent event, HardwareKeyboard state) bool
acceptsCompareShortcut(KeyEvent event, HardwareKeyboard state) bool
acceptsWidgetInspectorShortcut(KeyEvent event, HardwareKeyboard state) bool
acceptsZoomShortcut(KeyEvent event, HardwareKeyboard state) bool
cancelCurrentMode() → void
Exit the active inspection mode without committing anything.
confirmCurrentSelection({required BuildContext context}) → void
Commit the current selection for the active inspection mode and exit.
dispose() → void
enterCompareMode() → void
Enter compare mode: wait for the user to tap a second widget.
exitCompareMode() → void
Exit compare mode and reset compare state.
handleColorPickerShortcut(bool isPressed) → void
handleCompareShortcut() → void
handleInspectorShortcut(bool isPressed) → void
handleZoomShortcut(bool isPressed) → void
invalidateCapturedImage() → void
Drops the cached pixel snapshot and re-captures it on the next frame while the user stays in InspectorMode.colorPicker / InspectorMode.zoom.
isColorPickerShortcutStillPressed(HardwareKeyboard state) bool
isWidgetInspectorShortcutStillPressed(HardwareKeyboard state) bool
isZoomShortcutStillPressed(HardwareKeyboard state) bool
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onPointerExit(Offset pointerOffset) → void
onPointerHoverDebounced(Offset pointerOffset, BuildContext context) → void
onPointerMove(Offset pointerOffset, BuildContext context) → void
onPointerScroll(PointerScrollEvent scrollEvent) → void
onTap(Offset? pointerOffset, BuildContext context) → void
setMode(InspectorMode mode, {BuildContext? context}) → void
toString() String
A string representation of this object.
inherited
zoomIn() → void
zoomOut() → void

Operators

operator ==(Object other) bool
The equality operator.
inherited