AsyncLoop<I> class

An async loop, similar to a for loop block.

  • i the for cursor.
  • condition the for condition.
  • next the for next/after statement.
  • body the for body/block.

Constructors

AsyncLoop(I init, bool condition(I i), I next(I i), FutureOr<bool> body(I i))
Constructor.

Properties

body FutureOr<bool> Function(I i)
The for body/block.
final
condition bool Function(I i)
The for condition.
final
hashCode int
The hash code for this object.
no setterinherited
i ↔ I
The for cursor.
getter/setter pair
next → I Function(I i)
The for next/after statement.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
run() FutureOr<I>
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

forEach<T>(Iterable<T> itr, FutureOr<bool> block(T e)) AsyncLoop