expectAsync function

  1. @Deprecated('Will be removed in 0.13.0')
Function expectAsync(
  1. Function callback, {
  2. int count = 1,
  3. int max = 0,
  4. String? id,
  5. String? reason,
})

This function is deprecated because it doesn't work well with strong mode. Use expectAsync0, expectAsync1, expectAsync2, expectAsync3, expectAsync4, expectAsync5, or expectAsync6 instead.

Implementation

@Deprecated('Will be removed in 0.13.0')
Function expectAsync(Function callback,
        {int count = 1, int max = 0, String? id, String? reason}) =>
    _ExpectedFunction(callback, count, max, id: id, reason: reason).func;