waitFor<T> function

Future<T> waitFor <T>(
  1. FutureOr<T> condition(
      ),
    1. {dynamic matcher,
    2. Duration timeout: defaultTimeout,
    3. Duration interval: defaultInterval}
    )

    Implementation

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