toAndClearAllNamedRoute method

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

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