updateFromRouteConfig method

  1. @internal
void updateFromRouteConfig(
  1. AppRouteConfig routeConfig
)

Update the current state using AppRouteConfig to update the path, previewMode and queryParams fields. Since these fields can be manipulated from the router's query parameters, as opposed to the rest of fields that stay unchanged during runtime.

Implementation

@internal
void updateFromRouteConfig(AppRouteConfig routeConfig) {
  path = routeConfig.path;
  query = routeConfig.query;
  previewMode = routeConfig.previewMode;
  queryParams = routeConfig.queryParams;
  notifyListeners();
}