FlutterContacts class Null safety

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
A string representation of this object. [...]
inherited

Operators

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

Static Properties

config FlutterContactsConfig
Plugin configuration.
read / write

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 deduplicateProperties: true}) Future<Contact?>
Fetches one contact. [...]
getContacts({bool withProperties: false, bool withThumbnail: false, bool withPhoto: 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. [...]
removeListener(void listener()) → void
Removes a listener to contact database changes. [...]
requestPermission() Future<bool>
Requests permission to read/write contacts. Returns true if granted, false in any other case.
updateContact(Contact contact) Future<Contact>
Updates existing contact and returns it. [...]