updateRouteInformation method

void updateRouteInformation(
  1. BeamState state
)

Pass this call to root which notifies the platform for a state change.

On Web, creates a new browser history entry and update URL

See SystemNavigator.routeInformationUpdated.

Implementation

void updateRouteInformation(BeamState state) {
  if (_parent == null) {
    SystemNavigator.routeInformationUpdated(
      location: state.uri.toString(),
      state: json.encode(state.data),
    );
  } else {
    _parent!.updateRouteInformation(state);
  }
}