operator == method

  1. @override
bool operator ==(
  1. Object other
)
override

Returns true if all items in this contact are identical.

Implementation

@override
bool operator ==(Object other) {
  return other is Contact &&
      avatar == other.avatar &&
      company == other.company &&
      displayName == other.displayName &&
      givenName == other.givenName &&
      familyName == other.familyName &&
      identifier == other.identifier &&
      jobTitle == other.jobTitle &&
      androidAccountType == other.androidAccountType &&
      androidAccountName == other.androidAccountName &&
      middleName == other.middleName &&
      prefix == other.prefix &&
      suffix == other.suffix &&
      birthday == other.birthday &&
      note == other.note &&
      const DeepCollectionEquality.unordered().equals(phones, other.phones) &&
      const DeepCollectionEquality.unordered().equals(emails, other.emails) &&
      const DeepCollectionEquality.unordered()
          .equals(postalAddresses, other.postalAddresses) &&
      const DeepCollectionEquality.unordered()
          .equals(socialProfiles, other.socialProfiles);
}