copyWith method

GroupCriteria copyWith({
  1. String fieldName()?,
  2. OrderDirections directions()?,
  3. List<AggregateCriteria> aggregates()?,
})

Implementation

GroupCriteria copyWith({
  String Function()? fieldName,
  OrderDirections Function()? directions,
  List<AggregateCriteria> Function()? aggregates,
}) {
  return GroupCriteria(
    fieldName: fieldName == null ? this.fieldName : fieldName(),
    directions: directions == null ? this.directions : directions(),
    aggregates: aggregates == null ? this.aggregates : aggregates(),
  );
}