forEachIndexed method
Same as Iterable.foreach
except that the f
function also receives
the index of the item
Implementation
void forEachIndexed(Function(int, T) f) {
var index = 0;
return forEach((element) => f(index++, element));
}
Same as Iterable.foreach
except that the f
function also receives
the index of the item
void forEachIndexed(Function(int, T) f) {
var index = 0;
return forEach((element) => f(index++, element));
}