firstWhereIndexedOrNull method

Bloom<E?> firstWhereIndexedOrNull(
  1. bool test(
    1. int index,
    2. E element
    )
)

Returns the first element that satisfies an indexed predicate test reactively, or null if none.

  • test: Indexed predicate evaluated against elements in order.

Implementation

Bloom<E?> firstWhereIndexedOrNull(bool Function(int index, E element) test) =>
    computed((via) => via(bloom).firstWhereIndexedOrNull(test));