singleWhereIndexedOrNull method

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

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

  • test: Indexed predicate evaluated against elements.

Implementation

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