MenuItem class
A single selectable entry in a Menu dropdown.
Each item carries a human-readable label (displayed in the dropdown) and an arbitrary value string (used for programmatic identification).
Items build themselves via the build method, which reads the nearest MenuScope to access the active MenuController and ItemConfig. Tapping the item calls MenuController.selectItem, closing the dropdown and updating the trigger bar.
Properties
Methods
-
build(
BuildContext context) → Widget -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited