flatMapIndexed<R> method
Returns a single Iterable of all elements yielded from results of
transform
function being invoked on each element and its index in the
original collection.
Implementation
Iterable<R> flatMapIndexed<R>(
Iterable<R> Function(int index, E element) transform,
) =>
mapIndexed(transform).flatten;