to method

void to(
  1. String routeName, {
  2. Map<String, dynamic>? args,
})

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);
}