WhereCondition class

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'),
])
Implementers

Constructors

WhereCondition()
const
WhereCondition.fromJson(Map<String, dynamic> data)
factory

Properties

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

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toJson() Map<String, dynamic>
toString() String
Returns a string representation of this object.
override

Operators

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