popUntil<T extends Object?> static method
Pops routes until the predicate returns true.
context: The build context from which to pop.
predicate: A function that returns true for the route that should be stopped at.
Implementation
static Future popUntil<T extends Object?>(
BuildContext context,
RoutePredicate predicate,
) async {
return Navigator.popUntil(context, predicate);
}