FFFirestoreQuery constructor
FFFirestoreQuery({
- FFIdentifier? collectionIdentifier,
- @Deprecated('This field is deprecated.') Iterable<
FFFirestoreFilter> ? legacyWhere, - Iterable<
FFFirestoreOrderBy> ? orderBy, - int? limit,
- bool? hideOnEmpty,
- bool? singleTimeQuery,
- bool? ignoreEmptyValues,
- FFFirestorePagination? pagination,
- bool? excludeCurrentUser,
- FFValue? parentReference,
- FFFirestoreAggregation? aggregation,
- bool? filterOnNull,
- 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;
}