removeUriFragment function

Uri removeUriFragment(
  1. String url
)

Removes fragment from url and returns an Uri.

Implementation

Uri removeUriFragment(String url) {
  var uri = Uri.parse(url);
  return buildUri(uri.scheme, uri.host, uri.port,
      path: uri.path, queryString: uri.query);
}