pushAndRemoveUntil<T extends Object?> method
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 = await appNavigator?.pushAndRemoveUntil<T>(newRoute, predicate);
return push;
}