navigateTo method

  1. @override
void navigateTo(
  1. AppRoute route
)
override

Navigate to the given app route.

The router should rebuild its pages to display the given app route as well as any necessary pages underneath it.

Implementation

@override
void navigateTo(AppRoute route) async {
  for (final interceptor in List.of(_interceptors)) {
    if (!(await interceptor(false, null)).canNavigate) {
      return;
    }
  }

  currentConfiguration = currentConfiguration.withCurrentRoute(route);
}