copyWith method

AttachmentDTO copyWith({
  1. AttachmentLinkDTO? links,
  2. UserDTO? author,
  3. DateDTO? created,
  4. String? filename,
  5. String? mimeType,
  6. int? size,
})

Implementation

AttachmentDTO copyWith(
    {AttachmentLinkDTO? links,
    UserDTO? author,
    DateDTO? created,
    String? filename,
    String? mimeType,
    int? size}) {
  return AttachmentDTO(
    links: links ?? this.links,
    author: author ?? this.author,
    created: created ?? this.created,
    filename: filename ?? this.filename,
    mimeType: mimeType ?? this.mimeType,
    size: size ?? this.size,
  );
}