MenuItem class
A standard menu item, with no submenus.
- Inheritance
-
- Object
- MenuItemBase
- MenuItem
Constructors
- MenuItem({required String label, bool enabled = true, MenuItemSelectedCallback? onClicked})
-
Creates a new menu item with the given
label
and options.
Properties
- enabled → bool
-
Whether or not the menu item is enabled.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- label → String
-
finalinherited
- onClicked → MenuItemSelectedCallback?
-
The callback to call whenever the menu item is selected.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- type → String
-
The displayed label for the menu item.
finalinherited
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