NmSheetAction<T> class

One option of NmBottomActionSheet.

Annotations

Constructors

NmSheetAction({required T value, required String label, NmIconData? icon, bool destructive = false})
Creates an NmSheetAction.
const

Properties

destructive → bool
Draws the action in the danger color.
final
hashCode → int
The hash code for this object.
no setterinherited
icon → NmIconData?
Glyph, if any.
final
label → String
Visible label.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
value → T
Returned when the action is chosen.
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