copyWith method

AggregateCriteria copyWith({
  1. String fieldName()?,
  2. Aggregations aggregation()?,
})

Implementation

AggregateCriteria copyWith({
  String Function()? fieldName,
  Aggregations Function()? aggregation,
}) {
  return AggregateCriteria(
    fieldName: fieldName == null ? this.fieldName : fieldName(),
    aggregation: aggregation == null ? this.aggregation : aggregation(),
  );
}