MenuItem class
Menu item data
Constructors
- MenuItem({required String value, required String label, IconData? icon, Widget? trailing, VoidCallback? onTap, bool enabled = true, bool isDivider = false})
-
const
- MenuItem.divider()
-
Create a divider menu item
const
Properties
- enabled → bool
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- icon → IconData?
-
final
- isDivider → bool
-
final
- label → String
-
final
- onTap → VoidCallback?
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- trailing → Widget?
-
final
- value → String
-
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