copyWith method

DatumQuery copyWith({
  1. List<FilterCondition>? filters,
  2. List<SortDescriptor>? sorting,
  3. int? limit,
  4. int? offset,
  5. LogicalOperator? logicalOperator,
  6. List<String>? withRelated,
})

Creates a copy of this query with updated fields.

Implementation

DatumQuery copyWith({
  List<FilterCondition>? filters,
  List<SortDescriptor>? sorting,
  int? limit,
  int? offset,
  LogicalOperator? logicalOperator,
  List<String>? withRelated,
}) {
  return DatumQuery(
    filters: filters ?? this.filters,
    sorting: sorting ?? this.sorting,
    limit: limit ?? this.limit,
    offset: offset ?? this.offset,
    logicalOperator: logicalOperator ?? this.logicalOperator,
    withRelated: withRelated ?? this.withRelated,
  );
}