AdaptiveDialogAction class

Pre-styled action buttons for PrismAdaptiveDialog.show.

Properties

hashCode → int
The hash code for this object.
no setterinherited
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

Static Methods

cancel(BuildContext context, {Object? result, String label = 'Cancel'}) → Widget
A neutral action (e.g. "Cancel"). Pops with result.
destructive(BuildContext context, {required String label, Object? result, VoidCallback? onPressed}) → Widget
A destructive action (e.g. "Delete") styled with the error color.
primary(BuildContext context, {required String label, Object? result, VoidCallback? onPressed}) → Widget
A primary action (e.g. "OK", "Confirm").