where method
Creates a filter for exact condition searches.
type
: The property to filter by, either a String or a Function.
operator
: The operator to use in the filter (e.g., WhereOperator.equal, WhereOperator.greater, etc.).
value
: The value to compare the property against.
Returns a CoffeeRequestGet<T> configured for exact condition searches.
Usage Example
where('name', WhereOperator.equal, 'Espresso')
where((Model model) => model.age, WhereOperator.greater, 18)
Implementation
CoffeeRequestGet<T> where(dynamic type, WhereOperator operator, dynamic value) {
_queryParameters.add(cqf.where(type, operator, value));
return this;
}