removeQueryParam method
Remove param
from the URI query parameters.
If there are multiple values with the key of param
, all will be removed.
If there is no query param with the key of param
, this does nothing.
Implementation
void removeQueryParam(String param) {
_uri = _uri.replace(queryParameters: {
for (final key in queryParametersAll.keys)
if (key != param) key: List.of(queryParametersAll[key]!),
});
}