ShortcutsModifier.manager constructor
const
ShortcutsModifier.manager({
- Key? key,
- Key? modifierKey,
- Widget? child,
- required ShortcutManager manager,
- String? debugLabel,
Creates a const Shortcuts widget that uses the manager to
manage the map of shortcuts.
If this constructor is used, shortcuts will return the contents of ShortcutManager.shortcuts.
The child and manager arguments are required.
Implementation
const ShortcutsModifier.manager({
super.key,
super.modifierKey,
super.child,
required ShortcutManager this.manager,
this.debugLabel,
}) : _shortcuts = const <ShortcutActivator, Intent>{},
assert(manager != null);