popUntilRoute method

void popUntilRoute(
  1. String routePath
)

Pop until reaching a specific route

Implementation

void popUntilRoute(String routePath) {
  while (canPop() && GoRouter.of(this).location != routePath) {
    pop();
  }
}