GlassDialogAction class

A button at the foot of a GlassAlertDialog.

Constructors

GlassDialogAction.new({required Widget child, VoidCallback? onPressed, bool isDefault = false, bool destructive = false, bool dismisses = true, Object? result})
Creates a dialog action.
const

Properties

child → Widget
The label, usually a Text.
final
destructive → bool
An action that deletes or can't be undone: red.
final
dismisses → bool
Whether choosing it closes the dialog.
final
hashCode → int
The hash code for this object.
no setterinherited
isDefault → bool
The action the dialog suggests: filled with the accent colour.
final
onPressed → VoidCallback?
Called when chosen, after the dialog is dismissed if dismisses.
final
result → Object?
What showGlassDialog returns when this action dismisses the dialog.
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