Fluent2ActionSheetAction<T> class

One act of a Fluent2ActionSheet.

Fluent2ActionSheetAction('delete', 'Delete', icon: Fluent2Icons.delete, destructive: true)
Annotations

Constructors

Fluent2ActionSheetAction(T value, String label, {IconData? icon, bool destructive = false, bool enabled = true})
An act that answers value when chosen.
const

Properties

destructive → bool
A loss: its words take the danger ink.
final
enabled → bool
False: it can't be chosen.
final
hashCode → int
The hash code for this object.
no setterinherited
icon → IconData?
The glyph before the words.
final
label → String
Its words.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
value → T
What choosing it answers.
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