Contact class

A model representing a contact.

Annotations

Constructors

Contact({String? identifier, String? displayName, String? givenName, String? middleName, String? prefix, String? suffix, String? familyName, String? company, String? jobTitle, List<Contact$Field>? emails, List<Contact$Field>? phones, List<Contact$PostalAddress>? postalAddresses, Uint8List? avatar, DateTime? birthday, AndroidAccountType? androidAccountType, String? androidAccountTypeRaw, String? androidAccountName})
A model representing a contact.
const
Contact.fromJson(JSON json)
Creates a Contact from a Map<String, Object?>.
factory

Properties

androidAccountName → String?
The account name on Android.
final
androidAccountType → AndroidAccountType?
The account type on Android.
final
androidAccountTypeRaw → String?
The raw account type on Android.
final
avatar → Uint8List?
The avatar image of the contact as a byte array.
final
birthday → DateTime?
The birthday of the contact.
final
company → String?
The company the contact is associated with.
final
displayName → String?
The display name of the contact.
final
emails → List<Contact$Field>?
The list of email addresses associated with the contact.
final
familyName → String?
The family name (last name) of the contact.
final
givenName → String?
The given name (first name) of the contact.
final
hashCode → int
The hash code for this object.
no setteroverride
identifier → String?
The unique identifier for the contact.
final
jobTitle → String?
The job title of the contact.
final
middleName → String?
The middle name of the contact.
final
phones → List<Contact$Field>?
The list of phone numbers associated with the contact.
final
postalAddresses → List<Contact$PostalAddress>?
The list of postal addresses associated with the contact.
final
prefix → String?
The prefix of the contact's name (e.g., Mr., Mrs., Dr.).
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
suffix → String?
The suffix of the contact's name (e.g., Jr., Sr., III).
final

Methods

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
Creates a copy of this contact with the given fields replaced with the new values.
initials() → String
The contact's initials.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → JSON
Converts this contact to a Map<String, Object?>.
toString() → String
A string representation of this object.
inherited

Operators

operator +(Contact other) → Contact
The + operator fills in this contact's empty fields with the fields from other
operator ==(Object other) → bool
Returns true if all items in this contact are identical.
override