FlutterContacts class

Constructors

FlutterContacts()

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

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

Operators

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

Static Properties

config FlutterContactsConfig
///////////////////////////////////////////// CONFIG /// /////////////////////////////////////////////
read / write

Static Methods

compareDisplayNames(Contact a, Contact b) int
Sort display names in the "natural" way, ignoring case and diacritics. [...]
deleteContact(String contactId) Future
//////////////////////////////////////////////// DELETING CONTACTS /// //////////////////////////////////////////////// Deletes contact with given ID (given by contact.id)
deleteContacts(List<String> contactIds) Future
Deletes contacts with given IDs (given by contact.id)
getContact(String id, {bool useHighResolutionPhotos: true, bool deduplicateEmailsAndPhones: true}) Future<Contact>
Fetches all fields for given contact
getContacts({bool withPhotos: false, bool sorted: true}) Future<List<Contact>>
//////////////////////////////////////////////// FETCHING CONTACTS /// //////////////////////////////////////////////// Fetches all contacts (IDs, display names, and optionally low-res photos)
getFullContacts({bool withPhotos: false, bool sorted: true, bool useHighResolutionPhotos: false, bool deduplicateEmailsAndPhones: true}) Future<List<Contact>>
Fetches all fields for all contacts
newContact(Contact contact) Future<Contact>
//////////////////////////////////////////////// CREATING CONTACTS /// //////////////////////////////////////////////// Creates new contact and return it [...]
onChange(Function listener) Future<void> Function()
//////////////////////////////////////////////// LISTENING TO DB CHANGES /// //////////////////////////////////////////////// Listens to contact database changes and executes callback function. [...]
updateContact(Contact contact, {bool deletePhoto: false}) Future
//////////////////////////////////////////////// UPDATING CONTACTS /// //////////////////////////////////////////////// Updates existing contact [...]