selectMode property

  1. @override
bool get selectMode
override

Implementation

@override
bool get selectMode =>
    WidgetsBinding.instance.debugShowWidgetInspectorOverride;
  1. @override
set selectMode (bool value)
override

Implementation

@override
set selectMode(bool value) {
  WidgetsBinding.instance.debugShowWidgetInspectorOverride = value;
  // The SDK's own `ext.flutter.inspector.show` setter clears the selection
  // when it turns the mode off. Skipping that would leave a highlighted
  // element behind, ready to reappear the next time the mode comes back.
  if (!value) WidgetInspectorService.instance.selection.clear();
}