splitAfter method

Bloom<List<List<E>>> splitAfter(
  1. bool test(
    1. E element
    )
)

Splits this collection after elements satisfying test reactively.

  • test: Predicate identifying chunk boundary elements.

Implementation

Bloom<List<List<E>>> splitAfter(bool Function(E element) test) =>
    computed((via) => List<List<E>>.unmodifiable(
          via(bloom).splitAfter(test).map((s) => List<E>.unmodifiable(s)),
        ));