copyWith method

CommentDTO copyWith({
  1. List<String>? expands,
  2. SelfLinkDTO? links,
  3. PagedDTOAttachmentDTO? attachments,
  4. UserDTO? author,
  5. String? body,
  6. DateDTO? created,
  7. String? id,
  8. bool? public,
  9. RenderedValueDTO? renderedBody,
})

Implementation

CommentDTO copyWith(
    {List<String>? expands,
    SelfLinkDTO? links,
    PagedDTOAttachmentDTO? attachments,
    UserDTO? author,
    String? body,
    DateDTO? created,
    String? id,
    bool? public,
    RenderedValueDTO? renderedBody}) {
  return CommentDTO(
    expands: expands ?? this.expands,
    links: links ?? this.links,
    attachments: attachments ?? this.attachments,
    author: author ?? this.author,
    body: body ?? this.body,
    created: created ?? this.created,
    id: id ?? this.id,
    public: public ?? this.public,
    renderedBody: renderedBody ?? this.renderedBody,
  );
}