notLike method Null safety
Adds a 'not like' expression to a query.
A query will only return objects where the selected property is not like value
.
For more documentation on postgres pattern matching, see https://www.postgresql.org/docs/10/functions-matching.html.
This method can be used on String types.
The flag caseSensitive
controls whether strings are compared case-sensitively.
Example:
final query = new Query<Employee>()
..where((e) => e.id).notEqualTo(60000);
Implementation
QueryExpressionJunction<T, InstanceType> notLike(
String value, {
bool caseSensitive = true,
}) {
expression = StringExpression(
value,
PredicateStringOperator.equals,
caseSensitive: caseSensitive,
invertOperator: true,
);
return _createJunction();
}