DialogAction<T> class
A dialog action which is used to show the actions of a native dialog. Tapping a action will also close the dialog.
Constructors
-
DialogAction({required String text, required FutureOr<
T?> onTap(), bool isDestructiveAction = false, TextStyle? textStyle}) -
Creates a DialogAction.
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- isDestructiveAction → bool
-
Whether the action is a destructive action. This is only used on iOS.
final
-
onTap
→ FutureOr<
T?> Function() -
The callback that is called when the action is tapped.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- text → String
-
The text of the action.
final
- textStyle → TextStyle?
-
The style of the action text.
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