forEachIndexed method
Implementation
void forEachIndexed(void Function(int index, dynamic element) action) {
int index = 0;
for (T element in this) {
action(index++, element);
}
}
void forEachIndexed(void Function(int index, dynamic element) action) {
int index = 0;
for (T element in this) {
action(index++, element);
}
}