withQueryParams method
Returns a new Uri with all params merged into the query string.
uri.withQueryParams({'page': '2', 'limit': '20'})
Implementation
Uri withQueryParams(Map<String, String> params) {
final merged = Map<String, String>.from(queryParameters)..addAll(params);
return replace(queryParameters: merged);
}