WhereCondition class abstract

Lower-level control over the value of a Query#where map.

Example:

Query(where: [
  Where.exact('myField', 'must_match_this_value')
  Where('myOtherField').contains('must_contain_this_value'),
])

Constructors

WhereCondition.new()
Lower-level control over the value of a Query#where map.
const
WhereCondition.fromJson(Map<String, dynamic> data)
Deserialize from JSON
factory

Properties

compare Compare
The kind of comparison of the evaluatedField to the value. Defaults to Compare.exact. It is the responsibility of the Provider to ignore or interpret the requested comparison.
no setter
conditions List<WhereCondition>?
Nested conditions. Leave unchanged for WhereConditions that do not nest.
no setter
evaluatedField String
The Dart name of the field. For example, myField when querying final String myField.
no setter
hashCode int
The hash code for this object.
no setteroverride
isRequired bool
Whether the condition(s) must evaluate to true. Defaults true.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value → dynamic
The value to compare on the evaluatedField.
no setter

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Serialize to JSON
toString() String
A string representation of this object.
override

Operators

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