pushNamedAndRemoveUntil<T extends Object?> method
Future<T?>
pushNamedAndRemoveUntil<
T extends Object?>({ - required String routeName,
- required String removeRouteName,
- Object? arguments,
- bool rootNavigator = false,
})
Implementation
Future<T?> pushNamedAndRemoveUntil<T extends Object?>({
required String routeName,
required String removeRouteName,
Object? arguments,
bool rootNavigator = false,
}) {
return navigator.pushNamedAndRemoveUntil<T>(
routeName,
ModalRoute.withName(removeRouteName),
arguments: arguments,
);
}