pushAndRemoveUntil<T extends Object?> method

  1. @optionalTypeArgs
Future<T?> pushAndRemoveUntil<T extends Object?>(
  1. Route<T> newRoute,
  2. RoutePredicate predicate
)

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

Implementation

@optionalTypeArgs
Future<T?> pushAndRemoveUntil<T extends Object?>(
        Route<T> newRoute, RoutePredicate predicate) =>
    appState!.pushAndRemoveUntil<T>(newRoute, predicate);