pushNamedAndRemoveUntil<T extends Object?> static method
Remove pages until predicate
returns true and push a named page route
Implementation
static Future<T?> pushNamedAndRemoveUntil<T extends Object?>(
String newRouteName,
bool Function(Route<dynamic> route) predicate, {
String navigator = _rootNavigatorName,
Object? arguments,
}) =>
_getContext(navigator).pushNamedAndRemoveUntil<T>(
newRouteName,
predicate,
arguments: arguments,
);