copyWith method
Contact
copyWith({
- int? id,
- String? uid,
- String? companyUid,
- String? profilePicture,
- String? firstName,
- String? lastName,
- dynamic email,
- String? phoneNumber,
- dynamic instagramUsername,
- dynamic instagramId,
- String? facebookUsername,
- String? facebookId,
- dynamic twitterUsername,
- dynamic twitterId,
- String? isBlocked,
- DateTime? createdAt,
- DateTime? updatedAt,
Implementation
Contact copyWith({
int? id,
String? uid,
String? companyUid,
String? profilePicture,
String? firstName,
String? lastName,
dynamic email,
String? phoneNumber,
dynamic instagramUsername,
dynamic instagramId,
String? facebookUsername,
String? facebookId,
dynamic twitterUsername,
dynamic twitterId,
String? isBlocked,
DateTime? createdAt,
DateTime? updatedAt,
}) {
return Contact(
id: id ?? this.id,
uid: uid ?? this.uid,
companyUid: companyUid ?? this.companyUid,
profilePicture: profilePicture ?? this.profilePicture,
firstName: firstName ?? this.firstName,
lastName: lastName ?? this.lastName,
email: email ?? this.email,
phoneNumber: phoneNumber ?? this.phoneNumber,
instagramUsername: instagramUsername ?? this.instagramUsername,
instagramId: instagramId ?? this.instagramId,
facebookUsername: facebookUsername ?? this.facebookUsername,
facebookId: facebookId ?? this.facebookId,
twitterUsername: twitterUsername ?? this.twitterUsername,
twitterId: twitterId ?? this.twitterId,
isBlocked: isBlocked ?? this.isBlocked,
createdAt: createdAt ?? this.createdAt,
updatedAt: updatedAt ?? this.updatedAt,
);
}