pushNamedAndRemoveUntil abstract method
Adds a route into the navigation stack and removes everything until the condition
specified in predicate
is satisfied
Implementation
void pushNamedAndRemoveUntil(
String route, {
Object? arguments,
RoutePredicate? predicate,
});