of static method

Menu? of(
  1. BuildContext context
)

Implementation

static Menu? of(BuildContext context) {
  return context.findAncestorWidgetOfExactType<Menu>();
}