partition method

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

Return a record containing the values of this Iterable for which test is false in the first element, and the values for which it is true in the second element.

Implementation

(Iterable<T>, Iterable<T>) partition(bool Function(T t) test) =>
    (where(test.negate), where(test));