Shortcuts.manager constructor

const Shortcuts.manager(
  1. {Key? key,
  2. required ShortcutManager manager,
  3. required Widget child,
  4. 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.


const Shortcuts.manager({
  required ShortcutManager this.manager,
  required this.child,
}) : _shortcuts = const <ShortcutActivator, Intent>{};