copyWith method
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}
)
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,
);