pushAndRemoveUntil<T extends Object?> method
- @optionalTypeArgs
- Route<
T> newRoute, - 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) async {
final push = appNavigator?.pushAndRemoveUntil<T>(newRoute, predicate);
return push;
}