operator + method
The + operator fills in this contact's empty fields with the fields from other
Implementation
Contact operator +(Contact other) => Contact(
keys: this.keys ?? other.keys,
identifier: this.identifier ?? other.identifier,
displayName: this.displayName ?? other.displayName,
givenName: this.givenName ?? other.givenName,
middleName: this.middleName ?? other.middleName,
prefix: this.prefix ?? other.prefix,
lastModified: this.lastModified ?? other.lastModified,
suffix: this.suffix ?? other.suffix,
familyName: this.familyName ?? other.familyName,
company: this.company ?? other.company,
jobTitle: this.jobTitle ?? other.jobTitle,
linkedContactIds: this.linkedContactIds + other.linkedContactIds,
note: this.note ?? other.note,
emails: {...this.emails, ...other.emails}.toList(),
socialProfiles:
{...this.socialProfiles, ...other.socialProfiles}.toList(),
dates: {...this.dates, ...other.dates}.toList(),
urls: {...this.urls, ...other.urls}.toList(),
phones: {...this.phones, ...other.phones}.toList(),
postalAddresses:
{...this.postalAddresses, ...other.postalAddresses}.toList(),
avatar: this.avatar ?? other.avatar);