MenuItem class
A single entry inside a MenuBarItem dropdown.
Has a label, an optional onSelected callback, an optional shortcut label, and an enabled flag. When enabled is false, the item appears dimmed.
Constructors
Properties
- enabled → bool
-
Whether this item can be selected.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- label → String
-
The text label displayed for this menu entry.
final
- onSelected → VoidCallback?
-
Called when the user selects this menu entry.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- shortcut → String?
-
An optional shortcut hint displayed alongside the label (e.g. "Ctrl+S").
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