forEachIndexed method
*<Null safety>*
void forEachIndexed (void action(int index, E element))
Implementation
void forEachIndexed(void Function(int index, E element) action) {
for (var index = 0; index < length; index++) {
action(index, this[index]);
}
}