copyWith method
DatumQuery
copyWith({
- List<
FilterCondition> ? filters, - List<
SortDescriptor> ? sorting, - int? limit,
- int? offset,
- LogicalOperator? logicalOperator,
- 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,
);
}