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
Static Methods
-
addListener(void listener())
→ void
-
Listens to contact database changes. [...]
-
deleteContact(Contact contact)
→ Future<void>
-
Deletes one contact from the database.
-
deleteContacts(List<Contact> contacts)
→ Future<void>
-
Deletes contacts from the database.
-
getContact(String id, {bool withProperties = true, bool withThumbnail = true, bool withPhoto = true, bool withGroups = false, bool withAccounts = false, bool deduplicateProperties = true})
→ Future<Contact?>
-
Fetches one contact. [...]
-
getContacts({bool withProperties = false, bool withThumbnail = false, bool withPhoto = false, bool withGroups = false, bool withAccounts = false, bool sorted = true, bool deduplicateProperties = true})
→ Future<List<Contact>>
-
Fetches all contacts. [...]
-
insertContact(Contact contact)
→ Future<Contact>
-
Inserts a new
contact
in the database and returns it. [...]
-
openExternalEdit(String id)
→ Future<Contact?>
-
Opens external contact app to edit an existing contact.
-
openExternalInsert()
→ Future<Contact?>
-
Opens external contact app to insert a new contact.
-
openExternalPick()
→ Future<Contact?>
-
Opens external contact app to pick an existing contact.
-
openExternalView(String id)
→ Future<void>
-
Opens external contact app to view an existing contact.
-
removeListener(void listener())
→ void
-
Removes a listener to contact database changes. [...]
-
requestPermission({bool readonly = false})
→ Future<bool>
-
Requests permission to read or read/write contacts. Returns true if
granted, false in any other case. Note: read-only mode is only applicable
to Android.
-
updateContact(Contact contact)
→ Future<Contact>
-
Updates existing contact and returns it. [...]