shortcuts property Null safety

Map<ShortcutActivator, Intent> shortcuts

Returns the shortcut map.

When the map is changed, listeners to this manager will be notified.

The returned map should not be modified.

Implementation

Map<ShortcutActivator, Intent> get shortcuts => _shortcuts;
void shortcuts=(Map<ShortcutActivator, Intent> value)

Implementation

set shortcuts(Map<ShortcutActivator, Intent> value) {
  assert(value != null);
  if (!mapEquals<ShortcutActivator, Intent>(_shortcuts, value)) {
    _shortcuts = value;
    _indexedShortcutsCache = null;
    notifyListeners();
  }
}