VerticalBarMenuItem class
One row of a VerticalBarAction's menu.
- Annotations
Constructors
- VerticalBarMenuItem({required String label, required VoidCallback onSelected, Widget? icon, bool enabled = true, bool destructive = false})
-
const
Properties
- destructive → bool
-
Uses the theme's error colour.
final
- enabled → bool
-
Whether the row can be chosen.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- icon → Widget?
-
Shown before label when non-null.
final
- label → String
-
The row's text.
final
- onSelected → VoidCallback
-
Called when the row is chosen; not called when the page is gone by then.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
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