sleepUntilElement method

Future<T> sleepUntilElement(
  1. String selectors, {
  2. Element? root,
  3. int? timeoutMs,
  4. int? intervalMs,
  5. int? minMs,
  6. Iterable<Element> mapper(
    1. List<Element> elems
    )?,
  7. bool validator(
    1. List<Element> elems
    )?,
  8. bool expected = false,
})

Implementation

Future<T> sleepUntilElement(String selectors,
        {Element? root,
        int? timeoutMs,
        int? intervalMs,
        int? minMs,
        Iterable<Element> Function(List<Element> elems)? mapper,
        bool Function(List<Element> elems)? validator,
        bool expected = false}) =>
    testUISleepUntilElement(root ?? element, selectors,
            timeoutMs: timeoutMs,
            intervalMs: intervalMs,
            minMs: minMs,
            mapper: mapper,
            validator: validator,
            expected: expected)
        .thenChain((_) => this as T);