selectMode property
Implementation
@override
bool get selectMode =>
WidgetsBinding.instance.debugShowWidgetInspectorOverride;
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();
}