copyWith method

Contact copyWith({
  1. int? id,
  2. String? uid,
  3. String? companyUid,
  4. String? profilePicture,
  5. String? firstName,
  6. String? lastName,
  7. dynamic email,
  8. String? phoneNumber,
  9. dynamic instagramUsername,
  10. dynamic instagramId,
  11. String? facebookUsername,
  12. String? facebookId,
  13. dynamic twitterUsername,
  14. dynamic twitterId,
  15. String? isBlocked,
  16. DateTime? createdAt,
  17. 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,
  );
}