FFFirestoreQuery constructor

FFFirestoreQuery({
  1. FFIdentifier? collectionIdentifier,
  2. @Deprecated('This field is deprecated.') Iterable<FFFirestoreFilter>? legacyWhere,
  3. Iterable<FFFirestoreOrderBy>? orderBy,
  4. int? limit,
  5. bool? hideOnEmpty,
  6. bool? singleTimeQuery,
  7. bool? ignoreEmptyValues,
  8. FFFirestorePagination? pagination,
  9. bool? excludeCurrentUser,
  10. FFValue? parentReference,
  11. FFFirestoreAggregation? aggregation,
  12. bool? filterOnNull,
  13. FFFirestoreWhere? where,
})

Implementation

factory FFFirestoreQuery({
  FFIdentifier? collectionIdentifier,
  @$core.Deprecated('This field is deprecated.')
  $core.Iterable<FFFirestoreFilter>? legacyWhere,
  $core.Iterable<FFFirestoreOrderBy>? orderBy,
  $core.int? limit,
  $core.bool? hideOnEmpty,
  $core.bool? singleTimeQuery,
  $core.bool? ignoreEmptyValues,
  FFFirestorePagination? pagination,
  $core.bool? excludeCurrentUser,
  FFValue? parentReference,
  FFFirestoreAggregation? aggregation,
  $core.bool? filterOnNull,
  FFFirestoreWhere? where,
}) {
  final result = create();
  if (collectionIdentifier != null)
    result.collectionIdentifier = collectionIdentifier;
  if (legacyWhere != null) result.legacyWhere.addAll(legacyWhere);
  if (orderBy != null) result.orderBy.addAll(orderBy);
  if (limit != null) result.limit = limit;
  if (hideOnEmpty != null) result.hideOnEmpty = hideOnEmpty;
  if (singleTimeQuery != null) result.singleTimeQuery = singleTimeQuery;
  if (ignoreEmptyValues != null) result.ignoreEmptyValues = ignoreEmptyValues;
  if (pagination != null) result.pagination = pagination;
  if (excludeCurrentUser != null)
    result.excludeCurrentUser = excludeCurrentUser;
  if (parentReference != null) result.parentReference = parentReference;
  if (aggregation != null) result.aggregation = aggregation;
  if (filterOnNull != null) result.filterOnNull = filterOnNull;
  if (where != null) result.where = where;
  return result;
}