withIndex property

Iterable<IndexedValue<E>> withIndex

Returns a lazy Iterable that wraps each element of the original collection into an IndexedValue containing the index of that element and the element itself.

Implementation

Iterable<IndexedValue<E>> get withIndex => IndexedValueIterable(this);