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 &&
      this.avatar == other.avatar &&
      this.company == other.company &&
      this.displayName == other.displayName &&
      this.givenName == other.givenName &&
      this.familyName == other.familyName &&
      this.identifier == other.identifier &&
      this.jobTitle == other.jobTitle &&
      this.androidAccountType == other.androidAccountType &&
      this.androidAccountName == other.androidAccountName &&
      this.middleName == other.middleName &&
      this.prefix == other.prefix &&
      this.suffix == other.suffix &&
      this.birthday == other.birthday &&
      DeepCollectionEquality.unordered().equals(this.phones, other.phones) &&
      DeepCollectionEquality.unordered().equals(this.emails, other.emails) &&
      DeepCollectionEquality.unordered()
          .equals(this.postalAddresses, other.postalAddresses);
}