forEachEntry method

void forEachEntry(
  1. void fn(
    1. Entry entry,
    2. int index
    )
)

Iterates over the entry list.

The fn parameter is a function that is called for each entry in the list.

Implementation

void forEachEntry(void Function(Entry entry, int index) fn) {
  for (int i = 0; i < length; i++) {
    fn(getEntryByIndex(i), i);
  }
}