copyWith method

PeamanUser copyWith({
  1. String? uid,
  2. String? name,
  3. String? userName,
  4. String? email,
  5. String? photo,
  6. String? phone,
  7. String? country,
  8. String? bio,
  9. PeamanGender? gender,
  10. int? dob,
  11. String? profession,
  12. String? profileStatus,
  13. PeamanOnlineStatus? onlineStatus,
  14. int? lastOnlineAt,
  15. int? feeds,
  16. int? photos,
  17. int? videos,
  18. int? followers,
  19. int? following,
  20. List<String>? searchKeys,
  21. int? reactionsReceivedFromFeeds,
  22. int? commentsReceivedFromFeeds,
  23. int? repliesReceivedFromFeeds,
  24. int? sharesReceivedFromFeeds,
  25. int? viewsReceivedFromFeeds,
  26. bool? admin,
  27. bool? editor,
  28. bool? tester,
  29. int? onboardingStep,
  30. bool? onboardingCompleted,
  31. int? createdAt,
  32. double? latitude,
  33. double? longitude,
  34. bool? visibility,
  35. Map<String, dynamic>? extraData,
})

Implementation

PeamanUser copyWith({
  final String? uid,
  final String? name,
  final String? userName,
  final String? email,
  final String? photo,
  final String? phone,
  final String? country,
  final String? bio,
  final PeamanGender? gender,
  final int? dob,
  final String? profession,
  final String? profileStatus,
  final PeamanOnlineStatus? onlineStatus,
  final int? lastOnlineAt,
  final int? feeds,
  final int? photos,
  final int? videos,
  final int? followers,
  final int? following,
  final List<String>? searchKeys,
  final int? reactionsReceivedFromFeeds,
  final int? commentsReceivedFromFeeds,
  final int? repliesReceivedFromFeeds,
  final int? sharesReceivedFromFeeds,
  final int? viewsReceivedFromFeeds,
  final bool? admin,
  final bool? editor,
  final bool? tester,
  final int? onboardingStep,
  final bool? onboardingCompleted,
  final int? createdAt,
  final double? latitude,
  final double? longitude,
  final bool? visibility,
  final Map<String, dynamic>? extraData,
}) {
  return PeamanUser(
    uid: uid ?? this.uid,
    name: name ?? this.name,
    userName: userName ?? this.userName,
    email: email ?? this.email,
    photo: photo ?? this.photo,
    phone: phone ?? this.phone,
    country: country ?? this.country,
    bio: bio ?? this.bio,
    gender: gender ?? this.gender,
    dob: dob ?? this.dob,
    profession: profession ?? this.profession,
    onlineStatus: onlineStatus ?? this.onlineStatus,
    lastOnlineAt: lastOnlineAt ?? this.lastOnlineAt,
    feeds: feeds ?? this.feeds,
    photos: photos ?? this.photos,
    videos: videos ?? this.videos,
    followers: followers ?? this.followers,
    following: following ?? this.following,
    searchKeys: searchKeys ?? this.searchKeys,
    reactionsReceivedFromFeeds:
        reactionsReceivedFromFeeds ?? this.reactionsReceivedFromFeeds,
    commentsReceivedFromFeeds:
        commentsReceivedFromFeeds ?? this.commentsReceivedFromFeeds,
    repliesReceivedFromFeeds:
        repliesReceivedFromFeeds ?? this.repliesReceivedFromFeeds,
    sharesReceivedFromFeeds:
        sharesReceivedFromFeeds ?? this.sharesReceivedFromFeeds,
    viewsReceivedFromFeeds:
        viewsReceivedFromFeeds ?? this.viewsReceivedFromFeeds,
    createdAt: createdAt ?? this.createdAt,
    admin: admin ?? this.admin,
    editor: editor ?? this.editor,
    tester: tester ?? this.tester,
    onboardingStep: onboardingStep ?? this.onboardingStep,
    onboardingCompleted: onboardingCompleted ?? this.onboardingCompleted,
    latitude: latitude ?? this.latitude,
    longitude: longitude ?? this.longitude,
    visibility: visibility ?? this.visibility,
    extraData: extraData ?? this.extraData,
  );
}