copyWith method

Contact copyWith({
  1. String? assistantName,
  2. DateTime? birthday,
  3. Address? businessAddress,
  4. String? businessHomePage,
  5. List<String>? businessPhones,
  6. List<String>? categories,
  7. String? changeKey,
  8. List<String>? children,
  9. String? companyName,
  10. DateTime? createdDateTime,
  11. String? department,
  12. String? displayName,
  13. List<EmailAddress>? emailAddresses,
  14. String? fileAs,
  15. String? generation,
  16. String? givenName,
  17. Address? homeAddress,
  18. List<String>? homePhones,
  19. String? id,
  20. List<String>? imAddresses,
  21. String? initials,
  22. String? jobTitle,
  23. DateTime? lastModifiedDateTime,
  24. String? manager,
  25. String? middleName,
  26. String? mobilePhone,
  27. String? nickName,
  28. String? officeLocation,
  29. Address? otherAddress,
  30. String? parentFolderId,
  31. String? personalNotes,
  32. String? profession,
  33. String? spouseName,
  34. String? surname,
  35. String? title,
  36. String? yomiCompanyName,
  37. String? yomiGivenName,
  38. String? yomiSurname,
})

Doesn't support setting null values for the properties.

Implementation

Contact copyWith({
  String? assistantName,
  DateTime? birthday,
  Address? businessAddress,
  String? businessHomePage,
  List<String>? businessPhones,
  List<String>? categories,
  String? changeKey,
  List<String>? children,
  String? companyName,
  DateTime? createdDateTime,
  String? department,
  String? displayName,
  List<EmailAddress>? emailAddresses,
  String? fileAs,
  String? generation,
  String? givenName,
  Address? homeAddress,
  List<String>? homePhones,
  String? id,
  List<String>? imAddresses,
  String? initials,
  String? jobTitle,
  DateTime? lastModifiedDateTime,
  String? manager,
  String? middleName,
  String? mobilePhone,
  String? nickName,
  String? officeLocation,
  Address? otherAddress,
  String? parentFolderId,
  String? personalNotes,
  String? profession,
  String? spouseName,
  String? surname,
  String? title,
  String? yomiCompanyName,
  String? yomiGivenName,
  String? yomiSurname,
}) {
  return Contact(
    assistantName: assistantName ?? this.assistantName,
    birthday: birthday ?? this.birthday,
    businessAddress: businessAddress ?? this.businessAddress,
    businessHomePage: businessHomePage ?? this.businessHomePage,
    businessPhones: businessPhones ?? this.businessPhones,
    categories: categories ?? this.categories,
    changeKey: changeKey ?? this.changeKey,
    children: children ?? this.children,
    companyName: companyName ?? this.companyName,
    createdDateTime: createdDateTime ?? this.createdDateTime,
    department: department ?? this.department,
    displayName: displayName ?? this.displayName,
    emailAddresses: emailAddresses ?? this.emailAddresses,
    fileAs: fileAs ?? this.fileAs,
    generation: generation ?? this.generation,
    givenName: givenName ?? this.givenName,
    homeAddress: homeAddress ?? this.homeAddress,
    homePhones: homePhones ?? this.homePhones,
    id: id ?? this.id,
    imAddresses: imAddresses ?? this.imAddresses,
    initials: initials ?? this.initials,
    jobTitle: jobTitle ?? this.jobTitle,
    lastModifiedDateTime: lastModifiedDateTime ?? this.lastModifiedDateTime,
    manager: manager ?? this.manager,
    middleName: middleName ?? this.middleName,
    mobilePhone: mobilePhone ?? this.mobilePhone,
    nickName: nickName ?? this.nickName,
    officeLocation: officeLocation ?? this.officeLocation,
    otherAddress: otherAddress ?? this.otherAddress,
    parentFolderId: parentFolderId ?? this.parentFolderId,
    personalNotes: personalNotes ?? this.personalNotes,
    profession: profession ?? this.profession,
    spouseName: spouseName ?? this.spouseName,
    surname: surname ?? this.surname,
    title: title ?? this.title,
    yomiCompanyName: yomiCompanyName ?? this.yomiCompanyName,
    yomiGivenName: yomiGivenName ?? this.yomiGivenName,
    yomiSurname: yomiSurname ?? this.yomiSurname,
  );
}