forEach method
Implementation
void forEach(void Function(RouteNode node) action) {
RouteNode? curr = this;
while (curr != null) {
action(curr);
curr = curr.next;
}
}
void forEach(void Function(RouteNode node) action) {
RouteNode? curr = this;
while (curr != null) {
action(curr);
curr = curr.next;
}
}