restorablePushAndRemoveUntil<T extends Object?> method

  1. @optionalTypeArgs
String restorablePushAndRemoveUntil<T extends Object?>(
  1. RestorableRouteBuilder<T> newRouteBuilder,
  2. RoutePredicate predicate, {
  3. Object? arguments,
})

Push a new route onto the navigator, and then remove all the previous routes until the predicate returns true.

Implementation

@optionalTypeArgs
String restorablePushAndRemoveUntil<T extends Object?>(
        RestorableRouteBuilder<T> newRouteBuilder, RoutePredicate predicate,
        {Object? arguments}) =>
    App.router.restorablePushAndRemoveUntil<T>(newRouteBuilder, predicate,
        arguments: arguments);