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