Account class

Raw Android account.

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.

Constructors

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

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
mimetypes List<String>
Android mimetypes provided by this account.
read / write
name String
Account name, e.g. john.doe@gmail.com.
read / write
rawId String
Raw account ID.
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
type String
Account type, e.g. com.google or com.facebook.messenger.
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.
override

Operators

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