withIndex method
Implementation
Iterable<IndexedValue<E>> withIndex() =>
toList().asMap().entries.map((entry) => IndexedValue(entry.key, entry.value));
Iterable<IndexedValue<E>> withIndex() =>
toList().asMap().entries.map((entry) => IndexedValue(entry.key, entry.value));