maybeOf static method

MenuAcceleratorCallbackBinding? maybeOf(
  1. BuildContext context
)

Returns the active MenuAcceleratorCallbackBinding in the given context, if any, and creates a dependency relationship that will rebuild the context when onInvoke changes.

If no MenuAcceleratorCallbackBinding is found, returns null.

See also:

Implementation

static MenuAcceleratorCallbackBinding? maybeOf(BuildContext context) {
  return context.dependOnInheritedWidgetOfExactType<MenuAcceleratorCallbackBinding>();
}