updateRouteInformation method
Pass this call to root which notifies the platform for a state
change.
On Web, creates a new browser history entry and update URL
Implementation
void updateRouteInformation(BeamState state) {
if (_parent == null) {
SystemNavigator.routeInformationUpdated(
location: state.uri.toString(),
state: json.encode(state.data),
);
} else {
_parent!.updateRouteInformation(state);
}
}