splitBefore method

*<Null safety>*

Iterable<List<T>> splitBefore (bool test(T element))

Implementation

Iterable<List<T>> splitBefore(bool Function(T element) test) =>
    splitBeforeIndexed((_, element) => test(element));