of static method

MenuScope of(
  1. BuildContext context
)

Implementation

static MenuScope of(BuildContext context) {
  final scope = context.dependOnInheritedWidgetOfExactType<MenuScope>();
  assert(scope != null, 'No MenuScope found in context');
  return scope!;
}