pushAndRemoveUntil<T extends Object?> method
Implementation
Future<T?> pushAndRemoveUntil<T extends Object?>({
required Route<T> newRoute,
required String routeName,
}) {
return navigator.pushAndRemoveUntil<T>(
newRoute,
ModalRoute.withName(routeName),
);
}