copyWith method
Implementation
Comment copyWith({
String? uuid,
String? content,
CommentType? type,
String? userUUID,
String? parentUUID,
DateTime? createdAt,
DateTime? updatedAt,
bool? isHidden,
String? replyCommentUUID,
}) {
return Comment(
uuid: uuid ?? this.uuid,
content: content ?? this.content,
type: type ?? this.type,
userUUID: userUUID ?? this.userUUID,
parentUUID: parentUUID ?? this.parentUUID,
createdAt: createdAt ?? this.createdAt,
updatedAt: updatedAt ?? this.updatedAt,
isHidden: isHidden ?? this.isHidden,
replyCommentUUID: replyCommentUUID ?? this.replyCommentUUID,
);
}