addQueryParamToProxy function

Uri addQueryParamToProxy(
  1. Uri uri,
  2. String key,
  3. String value
)

Implementation

Uri addQueryParamToProxy(Uri uri, String key, String value) {
  var qP = Map<String, String>.from(uri.queryParameters);
  qP.remove("url");
  qP[key] = value;
  qP["url"] = "";
  uri = uri.replace(queryParameters: qP);
  return uri;
}