of static method
Retrieves the nearest shortcut map from the widget tree.
Implementation
static Map<ShortcutActivator, Intent>? of(BuildContext context) {
final scope = context.dependOnInheritedWidgetOfExactType<_ShortcutsScope>();
return scope?.shortcuts;
}