splitAfter method

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

Splits this collection into chunks after elements satisfying test reactively.

Implementation

Coral<List<List<E>>> splitAfter(bool Function(E element) test) =>
    coral.map((source) => List<List<E>>.unmodifiable(
          source.splitAfter(test).map((s) => List<E>.unmodifiable(s)),
        ));