Loop class final

A looped chain of Steps.

Inheritance
Annotations
  • @Deprecated("Move over to FlowController.createBubble")

Constructors

Loop({required bool close(), required List<Step> steps})
Constructs a Loop by a closure test and a list of steps.
Loop.builder(Step? build(int index), int length)
Constructs a Loop by it's length and builder. Closes the loop whenever the build function returns null.

Properties

build ↔ Step? Function(int index)
Returns the next step to be executed as part of the loop. If null is returned the loop will end.
latefinal
hashCode → int
The hash code for this object.
no setterinherited
index ↔ int
Index marking the position of the step inside the loop. Used for indication.
getter/setter pair
leave ↔ bool
Marks if the Bubble should be closed after the current running Step.
getter/setter pairinherited
length → int
Length of the loop. Indicates how often the build function would be run.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

builder() → Step
Retrieves a Step from the build function and returns a Skipped step as well as ends the loop, whenever the retrieved step is null.
override
execute(FlowController 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