QueryPredicate class
One compiled where clause of a collection query: the field path it
tests, the op, the value to compare against, and the type the
collection's merge strategy assigns to that path (which selects how the
engine reads the stored field — a plain value, a counter total, or set
membership).
Constructors
- QueryPredicate({required String path, required QueryOp op, required Object? value, required CrdtType type})
-
Creates a predicate. Validation happens in the query builder; an engine
may assume the combination of
opandtypeis legal.const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- op → QueryOp
-
The comparison to perform.
final
- path → String
-
The flattened field path this predicate tests.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- type → CrdtType
-
The CrdtType of the field at path.
final
- value → Object?
-
The value to compare against. A scalar (
num,String,bool,null), or aListof scalars for QueryOp.isIn.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