copyWith method

LoggedInWatchingMyProfile copyWith({
  1. required MemberProfileModel newMemberProfileModel,
  2. double? uploadingBGProgress,
  3. double? uploadingProfilePhotoProgress,
})

Implementation

LoggedInWatchingMyProfile copyWith(
    {required MemberProfileModel newMemberProfileModel,
    double? uploadingBGProgress,
    double? uploadingProfilePhotoProgress}) {
  return LoggedInWatchingMyProfile(
    feedId: feedId,
    app: app,
    currentMemberProfileModel: newMemberProfileModel,
    currentMember: currentMember,
    postAccessibleByGroup: postAccessibleByGroup,
    postAccessibleByMembers: postAccessibleByMembers,
    onlyMyPosts: onlyMyPosts,
    uploadingBGProgress: uploadingBGProgress == null
        ? uploadingBGProgress
        : this.uploadingBGProgress,
    uploadingProfilePhotoProgress: uploadingProfilePhotoProgress == null
        ? uploadingProfilePhotoProgress
        : this.uploadingProfilePhotoProgress,
  );
}