of static method

Implementation

static Map<ShortcutActivator, Intent>? of(BuildContext context) {
  final scope = context.dependOnInheritedWidgetOfExactType<_ShortcutsScope>();
  return scope?.shortcuts;
}