where method
Creates and returns a new CollectionRef with additional filter on
specified field
. field
refers to a field in a document.
where
is not implemented
Implementation
@override
CollectionRef where(
field, {
isEqualTo,
}) {
final conditions = <List>[];
void addCondition(dynamic field, String operator, dynamic value) {
List<dynamic> condition;
condition = <dynamic>[field, operator, value];
conditions.add(condition);
}
if (isEqualTo != null) addCondition(field, '==', isEqualTo);
_conditions = conditions;
return this;
}