ModelQuery class

Class for sending queries to the model.

Basically, it allows you to send the same query as Firestore.

Can be converted to a String by passing value.

Annotations

Constructors

ModelQuery(String path, {String? key, dynamic isEqualTo, dynamic isNotEqualTo, dynamic isLessThanOrEqualTo, dynamic isGreaterThanOrEqualTo, dynamic arrayContains, DynamicList? arrayContainsAny, DynamicList? whereIn, DynamicList? whereNotIn, List<String>? geoHash, ModelQueryOrder order = ModelQueryOrder.asc, int? limit, String? orderBy})
Class for sending queries to the model.
const
ModelQuery.fromPath(String path)
Class for sending queries to the model.
factory

Properties

arrayContains → dynamic
If this value is in the key array, true.
final
arrayContainsAny DynamicList?
If the key array contains one of these values, true.
final
geoHash List<String>?
Check if it is geo hash the range on the position.
final
hashCode int
The hash code for this object.
no setteroverride
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 ModelQueryOrder
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 DynamicList?
If the value of key is equal to one of these values, true.
final
whereNotIn DynamicList?
If the value of key is not equal to all of these values, true.
final

Methods

check(Object? data) bool
Check if the condition is satisfied by passing data.
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.
override

Static Methods

limitCountFrom(Map<String, String> parameters) int?
Get limitCount from parameters.