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.
no setterinherited
mimetypes List<String>
Android mimetypes provided by this account.
getter/setter pair
name String
Account name, e.g. john.doe@gmail.com.
getter/setter pair
rawId String
Raw account ID.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type String
Account type, e.g. com.google or com.facebook.messenger.
getter/setter pair

Methods

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

Operators

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