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