copyWith method
PostCommentModel
copyWith({
- String? documentID,
- String? postId,
- String? postCommentId,
- String? memberId,
- DateTime? timestamp,
- String? appId,
- String? comment,
- int? likes,
- int? dislikes,
- List<
MemberMediumModel> ? memberMedia,
override
Implementation
@override
PostCommentModel copyWith({
String? documentID,
String? postId,
String? postCommentId,
String? memberId,
DateTime? timestamp,
String? appId,
String? comment,
int? likes,
int? dislikes,
List<MemberMediumModel>? memberMedia,
}) {
return PostCommentModel(
documentID: documentID ?? this.documentID,
postId: postId ?? this.postId,
postCommentId: postCommentId ?? this.postCommentId,
memberId: memberId ?? this.memberId,
timestamp: timestamp ?? this.timestamp,
appId: appId ?? this.appId,
comment: comment ?? this.comment,
likes: likes ?? this.likes,
dislikes: dislikes ?? this.dislikes,
memberMedia: memberMedia ?? this.memberMedia,
);
}