withQueryParameter method
Creates a filter for query parameters.
type
: The parameter to filter by, either a String or a Function.
value
: The value to set the parameter to.
Returns a CoffeeRequestGet<T> configured for query parameters.
Usage Example
withQueryParameter('name', 'Espresso')
withQueryParameter((Model model) => model.name, 'Latte')
Implementation
CoffeeRequestGet<T> withQueryParameter(dynamic type, dynamic value) {
_queryParameters.add(cqf.withQueryParameter(type, value));
return this;
}