mapIndexed<T> method

Iterable<T> mapIndexed<T>(
  1. T f(
    1. E e,
    2. int i
    )
)

Implementation

Iterable<T> mapIndexed<T>(T Function(E e, int i) f) {
  var i = 0;
  return map((e) => f(e, i++));
}