popRoute method

void popRoute(
  1. Route route
)

Removes routes from the stack until route is removed. This is equivalent to pop if route is currently on top of the stack.

Implementation

void popRoute(Route route) {
  while (currentRoute != route) {
    pop();
  }
  pop();
}