forIndex method

void forIndex(
  1. dynamic f(
    1. E e,
    2. int index
    )
)

Implementation

void forIndex(f(E e, int index)) {
  for (int i = 0; i < this.length; i++) {
    f(elementAt(i), i);
  }
}