go method

void go(
  1. String location, {
  2. Object? extra,
})

Replace the current route matches with the location.

Implementation

void go(String location, {Object? extra}) {
  _setValue(location, RouteInformationState<void>(extra: extra, type: NavigatingType.go));
}