anyIndexed method

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

Returns true if any element satisfies an indexed predicate test reactively.

  • test: Indexed predicate evaluated against elements.

Implementation

Bloom<bool> anyIndexed(bool Function(int index, E element) test) => computed(
    (via) => via(bloom).indexed.any((pair) => test(pair.$1, pair.$2)));