removeUriQueryString function
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);
}