waitFor<T> function

Future<T> waitFor<T>(
  1. FutureOr<T> condition(), {
  2. Object? matcher,
  3. Duration timeout = defaultTimeout,
  4. Duration interval = defaultInterval,
})

Implementation

Future<T> waitFor<T>(FutureOr<T> Function() condition,
        {Object? matcher,
        Duration timeout = defaultTimeout,
        Duration interval = defaultInterval}) =>
    clock.waitFor<T>(condition,
        matcher: matcher, timeout: timeout, interval: interval);