expandIndexed<T> method

Bloom<List<T>> expandIndexed<T>(
  1. Iterable<T> toElements(
    1. int index,
    2. E element
    )
)

Flattens this collection along with element indices reactively.

  • toElements: Indexed function expanding each element into an iterable.

Implementation

Bloom<List<T>> expandIndexed<T>(
        Iterable<T> Function(int index, E element) toElements) =>
    computed(
        (via) => List.unmodifiable(via(bloom).expandIndexed(toElements)));