setUrlStrategy function Null safety

void setUrlStrategy(
  1. UrlStrategy? strategy
)

Change the strategy to use for handling browser URL.

Setting this to null disables all integration with the browser history.

Implementation

void setUrlStrategy(UrlStrategy? strategy) {
  JsUrlStrategy? jsUrlStrategy;
  if (strategy != null) {
    jsUrlStrategy = convertToJsUrlStrategy(strategy);
  }
  jsSetUrlStrategy(jsUrlStrategy);
}