mapIndexed<T> method

Coral<List<T>> mapIndexed<T>(
  1. T convert(
    1. int index,
    2. E element
    )
)

Maps each element of this collection along with its index reactively.

Implementation

Coral<List<T>> mapIndexed<T>(T Function(int index, E element) convert) =>
    coral.map((source) => List.unmodifiable(source.mapIndexed(convert)));