sleepUntil method

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

Implementation

Future<T> sleepUntil(FutureOr<bool> Function() ready,
        {String readyTitle = 'ready',
        int? timeoutMs,
        int? intervalMs,
        int? minMs}) =>
    then((o) => o.sleepUntil(ready,
        readyTitle: readyTitle,
        timeoutMs: timeoutMs,
        intervalMs: intervalMs,
        minMs: minMs));