copyWith method
- @useResult
- String? identifier,
- String? displayName,
- String? givenName,
- String? middleName,
- String? prefix,
- String? suffix,
- String? familyName,
- String? company,
- String? jobTitle,
- String? androidAccountTypeRaw,
- String? androidAccountName,
- AndroidAccountType? androidAccountType,
- List<
Contact$Field> ? emails, - List<
Contact$Field> ? phones, - List<
Contact$PostalAddress> ? postalAddresses, - Uint8List? avatar,
- DateTime? birthday,
Creates a copy of this contact with the given fields replaced with the new values.
Implementation
@useResult
Contact copyWith({
String? identifier,
String? displayName,
String? givenName,
String? middleName,
String? prefix,
String? suffix,
String? familyName,
String? company,
String? jobTitle,
String? androidAccountTypeRaw,
String? androidAccountName,
AndroidAccountType? androidAccountType,
List<Contact$Field>? emails,
List<Contact$Field>? phones,
List<Contact$PostalAddress>? postalAddresses,
Uint8List? avatar,
DateTime? birthday,
}) =>
Contact(
identifier: identifier ?? this.identifier,
displayName: displayName ?? this.displayName,
givenName: givenName ?? this.givenName,
middleName: middleName ?? this.middleName,
prefix: prefix ?? this.prefix,
suffix: suffix ?? this.suffix,
familyName: familyName ?? this.familyName,
company: company ?? this.company,
jobTitle: jobTitle ?? this.jobTitle,
androidAccountTypeRaw:
androidAccountTypeRaw ?? this.androidAccountTypeRaw,
androidAccountName: androidAccountName ?? this.androidAccountName,
androidAccountType: androidAccountType ?? this.androidAccountType,
emails: emails ?? this.emails,
phones: phones ?? this.phones,
postalAddresses: postalAddresses ?? this.postalAddresses,
avatar: avatar ?? this.avatar,
birthday: birthday ?? this.birthday,
);