of static method

Gets the current state of the sub menus of the root flyout

Implementation

static MenuInfoProviderState of(BuildContext context) {
  return context.findAncestorStateOfType<MenuInfoProviderState>()!;
}