forEachEntry method
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);
}
}