GlassActionSheetAction class

An action that can be taken from a showGlassActionSheet call.

Constructors

GlassActionSheetAction({required String label, required VoidCallback onPressed, Widget? icon, GlassActionSheetStyle style = GlassActionSheetStyle.defaultStyle})
Creates an action sheet action.
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
icon → Widget?
Optional icon widget to display before the label
final
label → String
The label text for the action
final
onPressed → VoidCallback
Callback when the action is pressed
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
style → GlassActionSheetStyle
Visual style of the action
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