breakI method

(Iterable<T>, Iterable<T>) breakI(
  1. bool test(
    1. T t
    )
)

Return a record where first element is longest prefix (possibly empty) of this Iterable with elements that do not satisfy test and second element is the remainder of the Iterable.

Implementation

(Iterable<T>, Iterable<T>) breakI(bool Function(T t) test) =>
    (takeWhile(test.negate), skipWhile(test.negate));