menuItem method

Finder menuItem(
  1. dynamic text, {
  2. bool skipOffstage = true,
})

Finds MenuItemButton by text.

Implementation

Finder menuItem(dynamic text, {bool skipOffstage = true}) {
  return ancestor(
    of: _textOrFinder(text, skipOffstage),
    matching: byType(MenuItemButton, skipOffstage: skipOffstage),
  );
}