Inspector constructor

const Inspector({
  1. Key? key,
  2. required Widget child,
  3. Alignment alignment = Alignment.center,
  4. bool areKeyboardShortcutsEnabled = true,
  5. bool isPanelVisible = true,
  6. bool isWidgetInspectorEnabled = true,
  7. bool isColorPickerEnabled = true,
  8. bool isZoomEnabled = true,
  9. List<LogicalKeyboardKey> widgetInspectorShortcuts = const [LogicalKeyboardKey.alt, LogicalKeyboardKey.altLeft, LogicalKeyboardKey.altRight, LogicalKeyboardKey.meta, LogicalKeyboardKey.metaLeft, LogicalKeyboardKey.metaRight],
  10. List<LogicalKeyboardKey> colorPickerShortcuts = const [LogicalKeyboardKey.shift, LogicalKeyboardKey.shiftLeft, LogicalKeyboardKey.shiftRight],
  11. List<LogicalKeyboardKey> zoomShortcuts = const [LogicalKeyboardKey.keyZ],
  12. 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);