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, Color? tintColor, Color? foregroundColor})
Creates a dialog action configuration.
const

Properties

foregroundColor → Color?
Optional label color override when this action is enabled.
final
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
tintColor → Color?
Optional custom accent fill color for this 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