ActionUi class abstract interface

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, params and bound (the action's variables) evaluated.
Moves between screens as action says (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. onAction runs when its button (actionLabel) is pressed. Text and bound (the action's variables and the look's offset, 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