shortcuts property

Map<ShortcutActivator, Intent> shortcuts

Gets the combined shortcut bindings from all contexts that are registered with this ShortcutRegistry.

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

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

Implementation

Map<ShortcutActivator, Intent> get shortcuts {
  assert(ChangeNotifier.debugAssertNotDisposed(this));
  return <ShortcutActivator, Intent>{
    for (final MapEntry<ShortcutRegistryEntry, Map<ShortcutActivator, Intent>> entry in _registeredShortcuts.entries)
      ...entry.value,
  };
}