toNamedReplace<T extends Object?, TO extends Object?> method
Replaces the current route with a new named route.
Implementation
Future<T?> toNamedReplace<T extends Object?, TO extends Object?>(
String routeName,
{Object? arguments}) =>
Navigator.of(this)
.pushReplacementNamed<T, TO>(routeName, arguments: arguments);