FFPostgresQuery constructor

FFPostgresQuery({
  1. Iterable<FFPostgresFilter>? filters,
  2. Iterable<FFPostgresOrderBy>? orderBys,
  3. int? limit,
  4. bool? isSingleRow,
  5. bool? hideOnEmpty,
  6. bool? isStreamingSupabaseQuery,
  7. bool? isOrQuery,
})

Implementation

factory FFPostgresQuery({
  $core.Iterable<FFPostgresFilter>? filters,
  $core.Iterable<FFPostgresOrderBy>? orderBys,
  $core.int? limit,
  $core.bool? isSingleRow,
  $core.bool? hideOnEmpty,
  $core.bool? isStreamingSupabaseQuery,
  $core.bool? isOrQuery,
}) {
  final result = create();
  if (filters != null) result.filters.addAll(filters);
  if (orderBys != null) result.orderBys.addAll(orderBys);
  if (limit != null) result.limit = limit;
  if (isSingleRow != null) result.isSingleRow = isSingleRow;
  if (hideOnEmpty != null) result.hideOnEmpty = hideOnEmpty;
  if (isStreamingSupabaseQuery != null)
    result.isStreamingSupabaseQuery = isStreamingSupabaseQuery;
  if (isOrQuery != null) result.isOrQuery = isOrQuery;
  return result;
}