MenuItem class

A single selectable entry in a SimpleMenu 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.

Constructors

const

Properties

hashCode int
The hash code for this object.
no setterinherited
label String
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value → dynamic
final

Methods

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