GlassActionSheetAction class

A row of a GlassActionSheet.

Constructors

GlassActionSheetAction.new({required Widget child, Object? result, VoidCallback? onPressed, bool isDefault = false, bool destructive = false})
Creates a row for an action sheet.
const

Properties

child → Widget
The label, usually a Text.
final
destructive → bool
An action that deletes or can't be undone: red.
final
hashCode → int
The hash code for this object.
no setterinherited
isDefault → bool
The action the sheet suggests: in bold.
final
onPressed → VoidCallback?
Called when chosen, after the sheet starts to close.
final
result → Object?
What showGlassActionSheet returns when this action is chosen.
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