popUntil<T extends Object?> static method

Future popUntil<T extends Object?>(
  1. BuildContext context,
  2. RoutePredicate predicate
)

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);
}