ConfirmAction class final
Asks the user to confirm; runs actions when they do, cancelActions
when they don't. With dialog (a screen id), that screen is the dialog
and what its close modal action returns is ${result}.
- Inheritance
-
- Object
- ActionDef
- CoreAction
- ConfirmAction
Constructors
-
ConfirmAction({String title = '', String message = '', String caption = '', String confirmLabel = 'OK', String cancelLabel = 'Cancel', bool destructive = false, List<
ActionDef> actions = const [], List<ActionDef> cancelActions = const [], String dialog = '', Json params = const {}, ModalPresentation presentation = ModalPresentation.dialog, PopoverPlacement placement = PopoverPlacement.belowStart, bool barrierDismissible = true, Json style = const {}, Map<String, String> variables = const {}, bool enabled = true, bool nonBlocking = false, Predicate? when}) -
const
Properties
-
actions
→ List<
ActionDef> -
final
- barrierDismissible → bool
-
final
-
cancelActions
→ List<
ActionDef> -
final
- cancelLabel → String
-
final
- caption → String
-
Expressions.
final
- confirmLabel → String
-
final
- destructive → bool
-
final
- dialog → String
-
final
- enabled → bool
-
False skips the action.
finalinherited
- fieldsJson → Json
-
Its own fields, as JSON (sparse): what toJson writes besides
typeand the common fields. An action class outside this library overrides this.no setterinherited - hashCode → int
-
The hash code for this object.
no setterinherited
- message → String
-
Expressions.
final
-
nested
→ List<
ActionDef> -
The actions it runs itself (branches, follow-ups), in order.
no setteroverride
- nonBlocking → bool
-
The chain doesn't wait for it, and its failure doesn't stop the chain.
finalinherited
- params → Json
-
final
- placement → PopoverPlacement
-
final
- presentation → ModalPresentation
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
selfAndNested
→ Iterable<
ActionDef> -
This action, then every action nested in it, depth first.
no setterinherited
- style → Json
-
Cosmetics (colors, radius, border, shadows, text styles, sizes),
JSON.
final
- title → String
-
Expressions.
final
- type → String
-
The JSON
type.no setteroverride -
variables
→ Map<
String, String> -
final
- when → Predicate?
-
Runs only when it holds; null: always.
finalinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Json -
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited