contains method
Adds a 'contains string' expression to a query.
A query will only return objects where the selected property contains the string value
.
This method can be used on String types. The substring value
must be found in the stored string.
The flag caseSensitive
controls whether strings are compared case-sensitively.
Example:
var query = new Query<Employee>()
..where((s) => s.title).contains("Director");
Implementation
QueryExpressionJunction<T, InstanceType> contains(
String value, {
bool caseSensitive = true,
}) {
expression = StringExpression(
value,
PredicateStringOperator.contains,
caseSensitive: caseSensitive,
allowSpecialCharacters: false,
);
return _createJunction();
}