getUriRoot function
The root Uri for the platform.
- In the browser will be current URL with /path.
- When not in a Browser will be the /directory.
Implementation
Uri getUriRoot() {
  var base = getUriBase();
  return buildUri(base.scheme, base.host, base.port);
}