GameShortcut.withControlKey constructor

GameShortcut.withControlKey({
  1. required String title,
  2. required GameShortcutsShortcut shortcut,
  3. ContextCallback? onStart,
  4. ContextCallback? onStop,
  5. bool altKey = false,
  6. bool shiftKey = false,
})

Create an instance with controlKey or metaKey equal to true, depending on which platform we are running on.

Implementation

GameShortcut.withControlKey({
  required this.title,
  required this.shortcut,
  this.onStart,
  this.onStop,
  this.altKey = false,
  this.shiftKey = false,
})  : controlKey = useControlKey,
      metaKey = useMetaKey;