Contact class
- Available extensions
Constructors
-
Contact({String? givenName, String? identifier, ContactKeys? keys, String? middleName, String? displayName, String? prefix, String? suffix, String? familyName, String? company, String? jobTitle, List<
String> ? linkedContactIds, List<Item> ? emails, List<Item> ? phones, List<PostalAddress> ? postalAddresses, List<Item> ? socialProfiles, List<Item> ? urls, List<ContactDate> ? dates, Uint8List? avatar, DateTime? lastModified, String? note}) - Contact.fromMap(dynamic dyn, ContactMode? mode)
-
factory
Properties
- avatar ↔ Uint8List?
-
getter/setter pair
- company ↔ String?
-
getter/setter pair
-
dates
↔ List<
ContactDate> -
getter/setter pair
- displayName ↔ String?
-
getter/setter pair
-
emails
↔ List<
Item> -
getter/setter pair
- familyName ↔ String?
-
getter/setter pair
- givenName ↔ String?
-
getter/setter pair
- hasAvatar → bool
-
no setter
- hashCode → int
-
The hash code for this object.
no setteroverride
- identifier ↔ String?
-
getter/setter pair
- jobTitle ↔ String?
-
getter/setter pair
- keys → ContactKeys?
-
final
- lastModified ↔ DateTime?
-
getter/setter pair
-
linkedContactIds
↔ List<
String> -
getter/setter pair
- middleName ↔ String?
-
getter/setter pair
- note ↔ String?
-
getter/setter pair
-
phones
↔ List<
Item> -
getter/setter pair
-
postalAddresses
↔ List<
PostalAddress> -
getter/setter pair
- prefix ↔ String?
-
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
getter/setter pair
- suffix ↔ String?
-
getter/setter pair
-
urls
↔ List<
Item> -
getter/setter pair
Methods
-
getOrFetchAvatar(
) → FutureOr< Uint8List?> - If the avatar is already loaded, uses it. Otherwise, fetches the avatar from the server, but does not cache the result in memory.
-
initials(
) → String -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
removeDuplicates(
) → Contact - Removes duplicates from the collections. Duplicates are defined as having the exact same value
-
toMap(
) → Map< String, dynamic> -
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
Static Methods
-
of(
dynamic dyn, ContactMode mode) → Contact?