where method
Query<Map<String, dynamic> >
where(
- Object field, {
- Object? isEqualTo,
- Object? isNotEqualTo,
- Object? isLessThan,
- Object? isLessThanOrEqualTo,
- Object? isGreaterThan,
- Object? isGreaterThanOrEqualTo,
- Object? arrayContains,
- Iterable<
Object?> ? arrayContainsAny, - Iterable<
Object?> ? whereIn, - Iterable<
Object?> ? whereNotIn, - bool? isNull,
override
Creates and returns a new Query
with additional filter on specified
field
. field
refers to a field in a document.
The field
may be a String consisting of a single field name
(referring to a top level field in the document),
or a series of field names separated by dots '.'
(referring to a nested field in the document).
Alternatively, the field
can also be a FieldPath
.
Only documents satisfying provided condition are included in the result set.
Implementation
@override
Query<Map<String, dynamic>> where(
Object field, {
Object? isEqualTo,
Object? isNotEqualTo,
Object? isLessThan,
Object? isLessThanOrEqualTo,
Object? isGreaterThan,
Object? isGreaterThanOrEqualTo,
Object? arrayContains,
Iterable<Object?>? arrayContainsAny,
Iterable<Object?>? whereIn,
Iterable<Object?>? whereNotIn,
bool? isNull,
}) =>
_where == null
? throw UnimplementedError(
'You must supply where to the constructor of'
' CollectionReferenceFake',
)
: _where!(
field,
isEqualTo: isEqualTo,
isNotEqualTo: isNotEqualTo,
isLessThan: isLessThan,
isLessThanOrEqualTo: isLessThanOrEqualTo,
isGreaterThan: isGreaterThan,
isGreaterThanOrEqualTo: isGreaterThanOrEqualTo,
arrayContains: arrayContains,
arrayContainsAny: arrayContainsAny,
whereIn: whereIn,
whereNotIn: whereNotIn,
isNull: isNull,
);