ModulaMenuItem class
Individual menu item
Constructors
- ModulaMenuItem({String label = '', IconData? icon, Widget? leading, Widget? trailing, String? shortcut, bool enabled = true, bool destructive = false, bool isDivider = false, double? height, VoidCallback? onTap})
-
const
- ModulaMenuItem.divider()
-
Creates a divider menu item
const
Properties
- destructive → bool
-
Whether item is destructive (red color)
final
- enabled → bool
-
Whether item is enabled
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- height → double?
-
Item height
final
- icon → IconData?
-
Leading icon
final
- isDivider → bool
-
Whether this is a divider
final
- label → String
-
Item label
final
- leading → Widget?
-
Leading widget
final
- onTap → VoidCallback?
-
Tap callback
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- shortcut → String?
-
Keyboard shortcut text
final
- trailing → Widget?
-
Trailing widget
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