sleepUntil method

Future<T> sleepUntil(
  1. FutureOr<bool> ready(), {
  2. String readyTitle = 'ready',
  3. int? timeoutMs,
  4. int? intervalMs,
  5. int? minMs,
})

Alias to testUISleepUntil.

Implementation

Future<T> sleepUntil(FutureOr<bool> Function() ready,
        {String readyTitle = 'ready',
        int? timeoutMs,
        int? intervalMs,
        int? minMs}) =>
    testUISleepUntil(ready,
            readyTitle: readyTitle,
            timeoutMs: timeoutMs,
            intervalMs: intervalMs,
            minMs: minMs)
        .thenChain((_) => this as T);