replaceWithNamedRoute method
Replaces the current route with a named route.
routeName
is the name of the new route.
args
are the optional arguments to pass to the route.
Implementation
void replaceWithNamedRoute(String routeName, {Map<String, dynamic>? args}) {
Go(this).replaceWithNamedRoute(routeName, args: args);
}