SheenMenuItem<T> class Selection

One item of a showSheenMenu menu.

Annotations

Constructors

SheenMenuItem({required T value, required String label, String? icon, bool destructive = false, bool enabled = true})
An item that returns value, labelled label.
const

Properties

destructive → bool
Shows the item in the danger colour, for actions that delete or cannot be undone.
final
enabled → bool
Whether the item can be chosen.
final
hashCode → int
The hash code for this object.
no setterinherited
icon → String?
A glyph at the end of the row (SheenIcons), as iOS menus show them.
final
label → String
The label.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
value → T
What choosing the item returns.
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