toAndClearAllNamedRoute method
Navigates to a new route and removes all previous routes from the stack.
routeName
is the name of the new route.
args
are the optional arguments to pass to the route.
Implementation
void toAndClearAllNamedRoute(String routeName, {Map<String, dynamic>? args}) {
Go(this).toAndClearAllNamedRoute(routeName, args: args);
}