Shortcuts constructor Null safety

const Shortcuts(
  1. {Key? key,
  2. ShortcutManager? manager,
  3. required Map<ShortcutActivator, Intent> shortcuts,
  4. required Widget child,
  5. String? debugLabel}
)

Creates a const Shortcuts widget.

The child and shortcuts arguments are required.

Implementation

const Shortcuts({
  Key? key,
  this.manager,
  required this.shortcuts,
  required this.child,
  this.debugLabel,
}) : assert(shortcuts != null),
     assert(child != null),
     super(key: key);