DesignDialogAction class

An action at the foot of a DesignDialog.

Annotations

Constructors

DesignDialogAction({required String label, required VoidCallback? onPressed, bool isDefaultAction = false, bool isDestructiveAction = false, Object? data})
An action labelled, that onPressed runs.
const

Properties

data → Object?
Anything else the look needs to paint it (an icon, a variant).
final
enabled → bool
Whether it takes presses.
no setter
hashCode → int
The hash code for this object.
no setterinherited
isDefaultAction → bool
Whether it is the one the dialog is for (Save, Send), which the look draws first in rank. With no destructive action, it takes focus as the dialog opens. Defaults to false.
final
isDestructiveAction → bool
Whether it destroys or removes something (Delete, Discard), which the look draws as a warning. While a dialog has one, focus opens on the first action that is not. Defaults to false.
final
label → String
Its words, and what a screen reader calls it.
final
onPressed → VoidCallback?
Runs it (usually Navigator.pop with an answer); null disables it.
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