go method

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

Navigate to a location.

Implementation

void go(String location, {Object? extra}) {
  final router = App.goRouter;
  if (router == null) {
    push<void>(location, extra: extra);
  } else {
    router.go(location, extra: extra);
  }
}