copyWith method

User copyWith(
  1. {num? id,
  2. String? firstName,
  3. String? lastName,
  4. String? fullName,
  5. String? email,
  6. String? latitude,
  7. String? longitude,
  8. String? address,
  9. String? country,
  10. String? state,
  11. String? city,
  12. dynamic countryCode,
  13. String? contactNumber,
  14. String? accountType,
  15. String? userType,
  16. String? dob,
  17. String? gender,
  18. dynamic aboutMe,
  19. dynamic relationshipStatus,
  20. List<num>? businessIds,
  21. List<num>? interestIds,
  22. List<num>? musicTypeIds,
  23. num? status,
  24. String? timeZone,
  25. String? createdAt,
  26. dynamic emailVerifiedAt,
  27. dynamic loginType,
  28. dynamic uid,
  29. dynamic socialImage,
  30. dynamic socialMediaUrl,
  31. dynamic otp,
  32. String? profileImage,
  33. String? apiToken,
  34. num? totalReviews,
  35. num? followers,
  36. num? following,
  37. num? totalReview}
)

Implementation

User copyWith({  num? id,
  String? firstName,
  String? lastName,
  String? fullName,
  String? email,
  String? latitude,
  String? longitude,
  String? address,
  String? country,
  String? state,
  String? city,
  dynamic countryCode,
  String? contactNumber,
  String? accountType,
  String? userType,
  String? dob,
  String? gender,
  dynamic aboutMe,
  dynamic relationshipStatus,
  List<num>? businessIds,
  List<num>? interestIds,
  List<num>? musicTypeIds,
  num? status,
  String? timeZone,
  String? createdAt,
  dynamic emailVerifiedAt,
  dynamic loginType,
  dynamic uid,
  dynamic socialImage,
  dynamic socialMediaUrl,
  dynamic otp,
  String? profileImage,
  String? apiToken,
  num? totalReviews,
  num? followers,
  num? following,
  num? totalReview,
}) => User(  id: id ?? this.id,
  firstName: firstName ?? this.firstName,
  lastName: lastName ?? this.lastName,
  fullName: fullName ?? this.fullName,
  email: email ?? this.email,
  latitude: latitude ?? this.latitude,
  longitude: longitude ?? this.longitude,
  address: address ?? this.address,
  country: country ?? this.country,
  state: state ?? this.state,
  city: city ?? this.city,
  countryCode: countryCode ?? this.countryCode,
  contactNumber: contactNumber ?? this.contactNumber,
  accountType: accountType ?? this.accountType,
  userType: userType ?? this.userType,
  dob: dob ?? this.dob,
  gender: gender ?? this.gender,
  aboutMe: aboutMe ?? this.aboutMe,
  relationshipStatus: relationshipStatus ?? this.relationshipStatus,
  businessIds: businessIds ?? this.businessIds,
  interestIds: interestIds ?? this.interestIds,
  musicTypeIds: musicTypeIds ?? this.musicTypeIds,
  status: status ?? this.status,
  timeZone: timeZone ?? this.timeZone,
  createdAt: createdAt ?? this.createdAt,
  emailVerifiedAt: emailVerifiedAt ?? this.emailVerifiedAt,
  loginType: loginType ?? this.loginType,
  uid: uid ?? this.uid,
  socialImage: socialImage ?? this.socialImage,
  socialMediaUrl: socialMediaUrl ?? this.socialMediaUrl,
  otp: otp ?? this.otp,
  profileImage: profileImage ?? this.profileImage,
  apiToken: apiToken ?? this.apiToken,
  totalReviews: totalReviews ?? this.totalReviews,
  followers: followers ?? this.followers,
  following: following ?? this.following,
  totalReview: totalReview ?? this.totalReview,
);