copyWith method

Comment copyWith({
  1. UserDetails? author,
  2. dynamic body,
  3. DateTime? created,
  4. String? id,
  5. bool? jsdAuthorCanSeeRequest,
  6. bool? jsdPublic,
  7. List<EntityProperty>? properties,
  8. String? renderedBody,
  9. String? self,
  10. UserDetails? updateAuthor,
  11. DateTime? updated,
  12. Visibility? visibility,
})

Implementation

Comment copyWith(
    {UserDetails? author,
    dynamic body,
    DateTime? created,
    String? id,
    bool? jsdAuthorCanSeeRequest,
    bool? jsdPublic,
    List<EntityProperty>? properties,
    String? renderedBody,
    String? self,
    UserDetails? updateAuthor,
    DateTime? updated,
    Visibility? visibility}) {
  return Comment(
    author: author ?? this.author,
    body: body ?? this.body,
    created: created ?? this.created,
    id: id ?? this.id,
    jsdAuthorCanSeeRequest:
        jsdAuthorCanSeeRequest ?? this.jsdAuthorCanSeeRequest,
    jsdPublic: jsdPublic ?? this.jsdPublic,
    properties: properties ?? this.properties,
    renderedBody: renderedBody ?? this.renderedBody,
    self: self ?? this.self,
    updateAuthor: updateAuthor ?? this.updateAuthor,
    updated: updated ?? this.updated,
    visibility: visibility ?? this.visibility,
  );
}