Removes routes from the stack until route is removed. This is equivalent to pop if route is currently on top of the stack.
route
void popRoute(Route route) { while (currentRoute != route) { pop(); } pop(); }