replaceWithNamedRoute method

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

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.withKey(this).replaceWithNamedRoute(routeName, args: args);
}