Contact class

Represents a contact selected by the user from the native contact picker.

Constructors

Contact({String? fullName, List<String>? phoneNumbers, String? workPhoneNumber, String? homePhoneNumber, String? mobilePhoneNumber, String? selectedPhoneNumber, List<EmailAddress>? emailAddresses, String? avatar, List<PostalAddress>? postalAddresses, OrganizationInfo? organizationInfo, String? birthday, String? notes, List<String>? websiteURLs})
Creates a Contact instance with all possible contact details.
Contact.fromMap(Map map)
Creates a Contact object from a map returned by the native platform.
factory

Properties

avatar String?
The contact's avatar image encoded in Base64, or null if unavailable.
final
birthday String?
The contact's birthday, formatted as an ISO 8601 string, or null.
final
emailAddresses List<EmailAddress>?
A list of the contact's email addresses with labels.
final
fullName String?
The full name of the contact.
final
hashCode int
The hash code for this object.
no setterinherited
homePhoneNumber String?
The contact's home phone number, if available.
final
mobilePhoneNumber String?
The contact's mobile phone number, if available.
final
notes String?
Additional notes saved in the contact's profile.
final
organizationInfo OrganizationInfo?
The organization details of the contact, including company and job title.
final
phoneNumbers List<String>?
All phone numbers associated with this contact.
final
postalAddresses List<PostalAddress>?
The list of postal addresses (home, work, etc.) associated with the contact.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
selectedPhoneNumber String?
The phone number specifically selected by the user.
final
websiteURLs List<String>?
A list of website URLs associated with this contact.
final
workPhoneNumber String?
The contact's work phone number, if available.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited