to method
Navigates to the specified route with optional arguments.
routeName is the name of the route to navigate to.
args are the optional arguments to pass to the route.
Implementation
void to(String routeName, {Map<String, dynamic>? args}) {
Go.withKey(this).to(routeName, args: args);
}