popUntilPath method
Implementation
void popUntilPath(BuildContext context, String ancestorPath) {
while (routerDelegate.currentConfiguration.matches.last.matchedLocation != ancestorPath) {
if (!context.canPop()) {
return;
}
context.pop();
}
}