of static method

MenuStyle? of(
  1. BuildContext context
)

Implementation

static MenuStyle? of(BuildContext context) {
  return context.dependOnInheritedWidgetOfExactType<MenuTheme>()?.style;
}