copyWith method

  1. @override
PostLikeModel copyWith({
  1. String? documentID,
  2. String? postId,
  3. String? postCommentId,
  4. String? memberId,
  5. DateTime? timestamp,
  6. String? appId,
  7. LikeType? likeType,
})
override

Implementation

@override
PostLikeModel copyWith({
  String? documentID,
  String? postId,
  String? postCommentId,
  String? memberId,
  DateTime? timestamp,
  String? appId,
  LikeType? likeType,
}) {
  return PostLikeModel(
    documentID: documentID ?? this.documentID,
    postId: postId ?? this.postId,
    postCommentId: postCommentId ?? this.postCommentId,
    memberId: memberId ?? this.memberId,
    timestamp: timestamp ?? this.timestamp,
    appId: appId ?? this.appId,
    likeType: likeType ?? this.likeType,
  );
}