WherePhrase class
A collection of conditions that are evaluated together.
If mixing required:true
required:false
is necessary, use separate WherePhrases.
WherePhrases can be mixed with Where.
Invalid:
WherePhrase([
Where.exact('myField', true),
Or('myOtherField').isExactly(0),
])
Valid:
WherePhrase([
Where.exact('myField', true),
WherePhrase([
Or('myOtherField').isExactly(0),
Or('myOtherField').isExactly(1),
)]
])
- Inheritance
-
- Object
- WhereCondition
- WherePhrase
Constructors
-
WherePhrase.new(List<
WhereCondition> conditions, {bool? isRequired}) -
A collection of conditions that are evaluated together.
const
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 setteroverride -
conditions
→ List<
WhereCondition> -
Nested conditions. Leave unchanged for
WhereCondition
s that do not nest.final - evaluatedField → String
-
The Dart name of the field. For example,
myField
when queryingfinal String myField
.no setteroverride - hashCode → int
-
The hash code for this object.
no setterinherited
- isRequired → bool
-
Whether all conditions must evaulate to
true
for the query to return results.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- value → dynamic
-
The value to compare on the evaluatedField.
no setteroverride
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
Serialize to JSON
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited