CollectionQuery class
Class for sending queries to the collection.
Basically, it allows you to send the same query as Firestore.
- Annotations
Constructors
- CollectionQuery(String path, {String? key, dynamic isEqualTo, dynamic isNotEqualTo, dynamic isLessThanOrEqualTo, dynamic isGreaterThanOrEqualTo, dynamic arrayContains, dynamic arrayContainsAny, dynamic whereIn, dynamic whereNotIn, CollectionQueryOrder order = CollectionQueryOrder.asc, int? limit, String? orderBy})
-
Class for sending queries to the collection.
const
- CollectionQuery.fromPath(String path)
-
Class for sending queries to the collection.
factory
Properties
- arrayContains → dynamic
-
If this value is in the key array,
true
.final - arrayContainsAny → dynamic
-
If the key array contains one of these values,
true
.final - hashCode → int
-
The hash code for this object.
no setterinherited
- isEqualTo → dynamic
-
If the value of key is equal to this value,
true
.final - isGreaterThanOrEqualTo → dynamic
-
If the value of key is greater than this value,
true
.final - isLessThanOrEqualTo → dynamic
-
If the value of key is less than this value,
true
.final - isNotEqualTo → dynamic
-
If the value of key is not equal to this value,
true
.final - key → String?
-
Key for comparison.
final
- limit → int?
-
Limit the number to be acquired.
final
- order → CollectionQueryOrder
-
Specify ascending or descending order.
final
- orderBy → String?
-
Key to change the order.
final
- path → String
-
Query path.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- value → String
-
Convert all Query to String parameters.
no setter
- whereIn → dynamic
-
If the value of key is equal to one of these values,
true
.final - whereNotIn → dynamic
-
If the value of key is not equal to all of these values,
true
.final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → dynamic -
Convert the collection query to
DynamicMap
. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited