whereContains method

CoffeeRequestGet<T> whereContains(
  1. dynamic type,
  2. String value
)

Creates a filter for containment searches.

type: The property to filter by, either a String or a Function. value: The string value that the property should contain.

Returns a CoffeeQueryFilter configured for containment searches.

Usage Example

whereContains('name', 'Espresso')
whereContains((Model model) => model.name, 'Latte')

Implementation

CoffeeRequestGet<T> whereContains(dynamic type, String value) {
  _queryParameters.add(cqf.whereContains(type, value));
  return this;
}