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