lessThanEqualTo method Null safety
- T value
Adds a 'less than or equal to' expression to a query.
A query will only return objects where the selected property is less than or equal to value
.
This method can be used on int, String, double and DateTime types. For DateTime properties,
this method selects rows where the assigned property is 'earlier than or the same time as' value
. For String properties,
rows are selected if the value is alphabetically 'before or the same as' value
.
Example:
var query = new Query<Employee>()
..where((e) => e.salary).lessThanEqualTo(60000);
Implementation
QueryExpressionJunction<T, InstanceType> lessThanEqualTo(T value) {
expression = ComparisonExpression(value, PredicateOperator.lessThanEqualTo);
return _createJunction();
}