GameShortcut.withControlKey constructor
GameShortcut.withControlKey({
- required String title,
- required GameShortcutsShortcut shortcut,
- ContextCallback? onStart,
- ContextCallback? onStop,
- bool altKey = false,
- 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;