Bubble class abstract
A Bubble is a Step that consists of running a builder function, and its returned Step, until it receives the prompt to stop. Then it will run the candidate it got on the execution of itself.
A Bubble can be closed by FlowContext.pop(), FlowContext.close() or
by setting the bool leave to true.
pop()andclose()are meant for errors that can occur as part of the workflow inside of the Bubble.- leave is way to escape the Bubble successfully.
As example, in the Chain step, leave is set to true whenever the length of the steps is reached.
Constructors
- Bubble()
Properties
Methods
-
builder(
) → Step - The builder function will be called whenever the previous step inside the Bubble passes by without an error.
-
execute(
FlowContextController controller, [FutureOr< Step?> candidate()?]) → FutureOr<Step?> -
Executes the builder function until an escape prompt is received.
override
-
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