Account class

Account is only available on Android and represent raw contacts.

This is only exposed for information and debugging purposes and should be ignored in most cases.

Raw contacts are aggregated into unified contacts (which are the ones we usually care about). For example a single contact can have multiple raw contacts, one from Google, one from Skype, one from WhatsApp, etc.

If you have two Google accounts (e.g. two Gmail addresses registered on the phone) it's possible to have two raw contacts, part of the same contact, both with type com.google but with a different name.

Annotations

Constructors

Account(String rawId, String type, String name, [List<String> mimetypes = const []])
Account.fromJson(Map<String, dynamic> json)
factory

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
mimetypes List<String>
Which data types are contributed to by this account. [...]
@JsonKey(defaultValue: const []), read / write
name String
The "name" of the account, type-specific. For example it's the Gmail address for com.google, but just "WhatsApp" for WhatsApp.
@JsonKey(required: true), read / write
rawId String
The ID of the raw contact. It's different from the contact ID.
@JsonKey(required: true), read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
type String
The "type" of account, for example com.google for Google, com.facebook.messenger for Facebook Messenger.
@JsonKey(required: true), read / write

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toJson() Map<String, dynamic>
toString() String
Returns a string representation of this object.
inherited

Operators

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