Inspector constructor
const
Inspector({
- Key? key,
- required Widget child,
- Alignment alignment = Alignment.center,
- bool areKeyboardShortcutsEnabled = true,
- bool isPanelVisible = true,
- bool isWidgetInspectorEnabled = true,
- bool isColorPickerEnabled = true,
- bool isZoomEnabled = true,
- List<
LogicalKeyboardKey> widgetInspectorShortcuts = const [LogicalKeyboardKey.alt, LogicalKeyboardKey.altLeft, LogicalKeyboardKey.altRight, LogicalKeyboardKey.meta, LogicalKeyboardKey.metaLeft, LogicalKeyboardKey.metaRight], - List<
LogicalKeyboardKey> colorPickerShortcuts = const [LogicalKeyboardKey.shift, LogicalKeyboardKey.shiftLeft, LogicalKeyboardKey.shiftRight], - List<
LogicalKeyboardKey> zoomShortcuts = const [LogicalKeyboardKey.keyZ], - bool? isEnabled,
Implementation
const Inspector({
Key? key,
required this.child,
this.alignment = Alignment.center,
this.areKeyboardShortcutsEnabled = true,
this.isPanelVisible = true,
this.isWidgetInspectorEnabled = true,
this.isColorPickerEnabled = true,
this.isZoomEnabled = true,
this.widgetInspectorShortcuts = const [
LogicalKeyboardKey.alt,
LogicalKeyboardKey.altLeft,
LogicalKeyboardKey.altRight,
LogicalKeyboardKey.meta,
LogicalKeyboardKey.metaLeft,
LogicalKeyboardKey.metaRight,
],
this.colorPickerShortcuts = const [
LogicalKeyboardKey.shift,
LogicalKeyboardKey.shiftLeft,
LogicalKeyboardKey.shiftRight,
],
this.zoomShortcuts = const [
LogicalKeyboardKey.keyZ,
],
this.isEnabled,
}) : super(key: key);