where method
InAppQueryReference
where(
- Object field, {
- Object? isEqualTo,
- Object? isNotEqualTo,
- Object? isLessThan,
- Object? isLessThanOrEqualTo,
- Object? isGreaterThan,
- Object? isGreaterThanOrEqualTo,
- Object? arrayContains,
- Object? arrayNotContains,
- Iterable<
Object?> ? arrayContainsAny, - Iterable<
Object?> ? arrayNotContainsAny, - Iterable<
Object?> ? whereIn, - Iterable<
Object?> ? whereNotIn, - bool? isNull,
Implementation
InAppQueryReference where(
Object field, {
Object? isEqualTo,
Object? isNotEqualTo,
Object? isLessThan,
Object? isLessThanOrEqualTo,
Object? isGreaterThan,
Object? isGreaterThanOrEqualTo,
Object? arrayContains,
Object? arrayNotContains,
Iterable<Object?>? arrayContainsAny,
Iterable<Object?>? arrayNotContainsAny,
Iterable<Object?>? whereIn,
Iterable<Object?>? whereNotIn,
bool? isNull,
}) {
List<Query> queries = List.from(_q);
queries.add(Query(
field,
isEqualTo: isEqualTo,
isNotEqualTo: isNotEqualTo,
isLessThan: isLessThan,
isLessThanOrEqualTo: isLessThanOrEqualTo,
isGreaterThan: isGreaterThan,
isGreaterThanOrEqualTo: isGreaterThanOrEqualTo,
arrayContains: arrayContains,
arrayNotContains: arrayNotContains,
arrayContainsAny: arrayContainsAny,
arrayNotContainsAny: arrayNotContainsAny,
whereIn: whereIn,
whereNotIn: whereNotIn,
isNull: isNull,
));
return InAppQueryReference(
db: _db,
reference: reference,
path: path,
id: id,
queries: queries,
selections: _s,
sorts: _o,
options: _op,
counterMode: _cm,
);
}