copyWith method

AttachmentCreateDTO copyWith({
  1. AdditionalCommentDTO? additionalComment,
  2. bool? public,
  3. List<String>? temporaryAttachmentIds,
})

Implementation

AttachmentCreateDTO copyWith(
    {AdditionalCommentDTO? additionalComment,
    bool? public,
    List<String>? temporaryAttachmentIds}) {
  return AttachmentCreateDTO(
    additionalComment: additionalComment ?? this.additionalComment,
    public: public ?? this.public,
    temporaryAttachmentIds:
        temporaryAttachmentIds ?? this.temporaryAttachmentIds,
  );
}