GlassDialogAction class

Configuration for a dialog action button.

Used with GlassDialog to define action buttons.

Constructors

GlassDialogAction({required String label, required VoidCallback onPressed, bool isPrimary = false, bool isDestructive = false})
Creates a dialog action configuration.
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
isDestructive → bool
Whether this is a destructive action.
final
isPrimary → bool
Whether this is the primary (recommended) action.
final
label → String
Label text for the button.
final
onPressed → VoidCallback
Callback when the button is pressed.
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