pushNamedAndRemoveUntil abstract method

void pushNamedAndRemoveUntil(
  1. String route, {
  2. Object? arguments,
  3. RoutePredicate? predicate,
})

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