whereIndexed method

Coral<List<E>> whereIndexed(
  1. bool test(
    1. int index,
    2. E element
    )
)

Filters elements of this collection based on an indexed predicate test reactively.

Implementation

Coral<List<E>> whereIndexed(bool Function(int index, E element) test) =>
    coral.map((source) => List.unmodifiable(source.whereIndexed(test)));