forEach method

void forEach(
  1. UntilFn test, {
  2. bool reverse = false,
})
inherited

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;
    }
  }
}