forEach method

void forEach(
  1. void f(
    1. int index
    )
)

Implementation

void forEach(void Function(int index) f) {
  for (var i = 0; i < this; i++) {
    f(i);
  }
}