maybeOf method Null safety
- BuildContext context
Returns the ShortcutManager that most tightly encloses the given BuildContext.
If no Shortcuts widget encloses the context given, will return null.
See also:
Implementation
static ShortcutManager? maybeOf(BuildContext context) {
assert(context != null);
final _ShortcutsMarker? inherited = context.dependOnInheritedWidgetOfExactType<_ShortcutsMarker>();
return inherited?.manager;
}