popUntilNav method
void
popUntilNav(
Implementation
void popUntilNav(UntilFn test, {bool Function(Route route)? routeTest}) {
final nav = navigatorKey.currentState;
if (nav == null) return;
nav.popUntil((route) {
if (route.settings case RouteQueueEntryPage page) {
return test(page.entry);
}
return routeTest?.call(route) ?? false;
});
}