copyWith method

  1. @override
PostCommentModel copyWith({
  1. String? documentID,
  2. String? postId,
  3. String? postCommentId,
  4. String? memberId,
  5. DateTime? timestamp,
  6. String? appId,
  7. String? comment,
  8. int? likes,
  9. int? dislikes,
  10. 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,
  );
}