copyWith method
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,
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,
);
}