where method

InAppQueryReference where(
  1. Object field, {
  2. Object? isEqualTo,
  3. Object? isNotEqualTo,
  4. Object? isLessThan,
  5. Object? isLessThanOrEqualTo,
  6. Object? isGreaterThan,
  7. Object? isGreaterThanOrEqualTo,
  8. Object? arrayContains,
  9. Object? arrayNotContains,
  10. Iterable<Object?>? arrayContainsAny,
  11. Iterable<Object?>? arrayNotContainsAny,
  12. Iterable<Object?>? whereIn,
  13. Iterable<Object?>? whereNotIn,
  14. 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,
  );
}