Chain class final

A Chain is a Bubble that has a builder, which only will returning Steps until the length of the Chain is reached.

If you want an infinite Chain, create your own Bubble.

Inheritance

Constructors

Chain({required List<Step> steps})
A Chain that consists of a List of Step.
factory
Chain.builder(Step builder(int index), {required int length})
A Chain that consists of it's builder function and length.
factory

Properties

build Step Function(int index)
The build function has to return a Step until the index is as high, as the length allows. The function will be executed every time, the forgoing Step is done with it's execution.
latefinal
hashCode int
The hash code for this object.
no setterinherited
leave bool
Marks if the Bubble should be closed after the current running Step.
getter/setter pairinherited
length int
The length parameter is the length of the Chain and will specify of how many Steps the Chain consists of.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

builder() Step
The builder() of the Chain's execution order.
override
execute(FlowContextController controller, [FutureOr<Step?> candidate()?]) FutureOr<Step?>
Executes the builder function until an escape prompt is received.
inherited
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