AsyncLoop<I> constructor

AsyncLoop<I>(
  1. I init,
  2. bool condition(
    1. I i
    ),
  3. I next(
    1. I i
    ),
  4. FutureOr<bool> body(
    1. I i
    ),
)

Constructor.

  • init is the initial value of i

Implementation

AsyncLoop(I init, this.condition, this.next, this.body)
    :
      // ignore: prefer_initializing_formals
      i = init;