forEach method
Implementation
void forEach(UntilFn test, {bool reverse = false}) {
RouteQueueEntry? current;
if (reverse) {
current = _current;
while (current != null) {
if (test(current)) return;
current = current._pre;
}
} else {
current = _root;
while (current != null) {
if (test(current)) return;
current = current._next;
}
}
}