copyWith method

PostCommentEntity copyWith({
  1. String? documentID,
  2. String? postId,
  3. String? postCommentId,
  4. String? memberId,
  5. Object? timestamp,
  6. String? appId,
  7. String? comment,
  8. int? likes,
  9. int? dislikes,
  10. List<MemberMediumEntity>? memberMedia,
})

Implementation

PostCommentEntity copyWith({
  String? documentID,
  String? postId,
  String? postCommentId,
  String? memberId,
  Object? timestamp,
  String? appId,
  String? comment,
  int? likes,
  int? dislikes,
  List<MemberMediumEntity>? memberMedia,
}) {
  return PostCommentEntity(
    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,
  );
}