pushNamedAndRemoveUntil<T extends Object?> method

  1. @optionalTypeArgs
Future<T?> pushNamedAndRemoveUntil<T extends Object?>(
  1. String newRouteName,
  2. RoutePredicate predicate, {
  3. Object? arguments,
})

Push the route with the given name onto the navigator, and then remove all the previous routes until the predicate returns true.

Implementation

@optionalTypeArgs
Future<T?> pushNamedAndRemoveUntil<T extends Object?>(
        String newRouteName, RoutePredicate predicate, {Object? arguments}) =>
    App.router.pushNamedAndRemoveUntil<T>(newRouteName, predicate,
        arguments: arguments);