shortcuts property Null safety

Map<ShortcutActivator, Intent> shortcuts

Gets the combined shortcut bindings from all contexts that are registered with this ShortcutRegistry, in addition to the bindings passed to ShortcutRegistry.

Listeners will be notified when the value returned by this getter changes.

Returns a copy: modifying the returned map will have no effect.


Map<ShortcutActivator, Intent> get shortcuts {
  return <ShortcutActivator, Intent>{
    for (final MapEntry<ShortcutRegistryEntry, Map<ShortcutActivator, Intent>> entry in _tokenShortcuts.entries)