removeUriQueryString function

Uri removeUriQueryString(
  1. String url
)

Removes query string from url and returns an Uri.

Implementation

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