pushNamedAndRemoveUntil<T extends Object?> method
Remove pages until predicate
returns true and push a named page route
Implementation
Future<T?> pushNamedAndRemoveUntil<T extends Object?>(
String newRouteName,
bool Function(Route<dynamic> route) predicate, {
Object? arguments,
}) =>
Navigator.of(this).pushNamedAndRemoveUntil<T>(
newRouteName,
predicate,
arguments: arguments,
);