removeQuery method

Uri removeQuery()

Implementation

Uri removeQuery() {
  if (hasQuery) {
    return Uri.parse(url.split("?")[0]);
  } else {
    return this;
  }
}