expectAsyncUntil6<T, A, B, C, D, E, F> function

Func6<T, A, B, C, D, E, F> expectAsyncUntil6<T, A, B, C, D, E, F>(
  1. T callback(
    1. A,
    2. B,
    3. C,
    4. D,
    5. E,
    6. F,
    ),
  2. bool isDone(), {
  3. String? id,
  4. String? reason,
})

Informs the framework that the given callback of arity 6 is expected to be called until isDone returns true.

Returns a wrapped function that should be used as a replacement of the original callback.

isDone is called after each time the function is run. Only when it returns true will the callback be considered complete.

Both id and reason are optional and provide extra information about the callback when debugging. id should be the name of the callback, while reason should be the reason the callback is expected to be called.

This method takes callbacks with six arguments. See also expectAsyncUntil0, expectAsyncUntil1, expectAsyncUntil2, expectAsyncUntil3, expectAsyncUntil4, and expectAsyncUntil5 for callbacks with different arity.

Implementation

Func6<T, A, B, C, D, E, F> expectAsyncUntil6<T, A, B, C, D, E, F>(
        T Function(A, B, C, D, E, F) callback, bool Function() isDone,
        {String? id, String? reason}) =>
    _ExpectedFunction<T>(callback, 0, -1,
            id: id, reason: reason, isDone: isDone)
        .max6;