The UI effects of actions, implemented by the app shell.
- Implementers
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
-
closeModal(
Object? result) → bool -
Closes the modal the action runs in with
result; false when it doesn't run in one. -
confirm(
ConfirmAction action, {required String title, String message = '', String caption = '', String confirmLabel = 'OK', String cancelLabel = 'Cancel', Map< String, Object?> bound = const {}, Json params = const {}}) → Future<ConfirmOutcome> -
Asks to confirm; text,
paramsandbound(the action'svariables) evaluated. -
Moves between screens as
actionsays (NavigateAction.mode), with its params and base params evaluated. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
openModal(
OpenModalAction action, {Json params = const {}}) → Future< Object?> - Shows screen OpenModalAction.to as a modal; completes with what closed it (a CloseModalAction's result), null when dismissed.
-
pickFiles(
{bool images = true, bool multiple = true}) → Future< List< PickedFile> > - Lets the user pick files for an upload (none: canceled).
-
showToast(
ShowToastAction action, {required String message, String title = '', String actionLabel = '', Map< String, Object?> bound = const {}, VoidCallback? onAction}) → void -
Shows a toast.
onActionruns when its button (actionLabel) is pressed. Text andbound(the action'svariablesand the look'soffset, evaluated) are read where the action ran. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited