FilterCondition class

Create a filter condition dynamically.

Constructors

FilterCondition.between({required String property, Object? lower, bool includeLower = true, Object? upper, bool includeUpper = true, bool caseSensitive = true, double epsilon = Query.epsilon})
Filters the results to only include objects where the property is between lower and upper.
const
FilterCondition.contains({required String property, required String value, bool caseSensitive = true})
Filters the results to only include objects where the String property contains value.
const
FilterCondition.elementIsNotNull({required String property})
Filters the results to only include lists that do not contain null.
const
FilterCondition.elementIsNull({required String property})
Filters the results to only include lists that contain null.
const
FilterCondition.endsWith({required String property, required String value, bool caseSensitive = true})
Filters the results to only include objects where the property ends with value.
const
FilterCondition.equalTo({required String property, required Object? value, bool caseSensitive = true, double epsilon = Query.epsilon})
Filters the results to only include objects where the property equals value.
const
FilterCondition.greaterThan({required String property, required Object? value, bool include = false, bool caseSensitive = true, double epsilon = Query.epsilon})
Filters the results to only include objects where the property is greater than value.
const
FilterCondition.isNotNull({required String property})
Filters the results to only include objects where the property is not null.
const
FilterCondition.isNull({required String property})
Filters the results to only include objects where the property is null.
const
FilterCondition.lessThan({required String property, required Object? value, bool include = false, bool caseSensitive = true, double epsilon = Query.epsilon})
Filters the results to only include objects where the property is less than value.
const
FilterCondition.listLength({required String property, required int lower, required int upper})
Filters the results to only include objects where the length of property is between lower (included) and upper (included).
const
FilterCondition.matches({required String property, required String wildcard, bool caseSensitive = true})
Filters the results to only include objects where the property matches the wildcard.
const
FilterCondition.startsWith({required String property, required String value, bool caseSensitive = true})
Filters the results to only include objects where the property starts with value.
const

Properties

caseSensitive bool
Are string operations case sensitive.
final
epsilon double
The precision to use for floating point values.
final
hashCode int
The hash code for this object.
no setterinherited
include1 bool
Should value1 be part of the results.
final
include2 bool
Should value1 be part of the results.
final
property String
Property used for comparisons.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type FilterConditionType
Type of the filter condition.
final
value1 Object?
Value used for comparisons. Lower bound for ConditionType.between.
final
value2 Object?
Upper bound for ConditionType.between.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited