LogicalQuery class

Represents a query with the logical operators: AND & OR.

You need at least two queries to compare, but it could be added up with an endless chain of queries, see additionalQueries. See _LogicalOperatorType for all comparison methods. NOT is a logical operator too, but only uses one query arg, so see NOT to negate a query.

For more information about logical operators in RQL refer to the Ditto docs.

Inheritance
Implementers

Constructors

LogicalQuery(RQLQuery a, _LogicalOperatorType type, RQLQuery b, {List<RQLQuery> additionalQueries = const <RQLQuery>[]})
Creates a new LogicalQuery with the given type and the both comparison queries a and b.

Properties

a RQLQuery
The first comparison element.
getter/setter pair
additionalQueries List<RQLQuery>
The additional queries which are compared by the operator.
getter/setter pair
b RQLQuery
The second comparison element.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type ↔ _LogicalOperatorType
The type of this logical operator, see _LogicalOperatorType.
getter/setter pair

Methods

generateString() String
Returns the stored information in this QueryParam ready to use in a request.
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