CallFunctionAction class final

Calls a function the app registered by name with params (text values are expressions). Its result is the chain's ${result}: what the app's code answered (a permission granted, a share completed), which the next actions branch on. A function the app didn't register fails the chain, unless the action is optional.

Inheritance

Constructors

CallFunctionAction({String name = '', Json params = const {}, bool optional = false, bool enabled = true, bool nonBlocking = false, Predicate? when})
const

Properties

enabled → bool
False skips the action.
finalinherited
fieldsJson → Json
Its own fields, as JSON (sparse): what toJson writes besides type and the common fields. An action class outside this library overrides this.
no setterinherited
hashCode → int
The hash code for this object.
no setterinherited
name → String
final
nested → List<ActionDef>
The actions it runs itself (branches, follow-ups), in order.
no setterinherited
nonBlocking → bool
The chain doesn't wait for it, and its failure doesn't stop the chain.
finalinherited
optional → bool
A function the app didn't register is skipped: ${result} is null and the chain goes on (an app that hasn't wired a native feature yet).
final
params → Json
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
type → String
The JSON type.
no setteroverride
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

Constants

typeName → const String