MethodChannelContactsBridge class

An implementation of ContactsBridgePlatform that uses method channels.

Inheritance

Properties

eventChannel → EventChannel
The event channel used to observe contact changes from native platform.
final
hashCode → int
The hash code for this object.
no setterinherited
methodChannel → MethodChannel
The method channel used to interact with the native platform.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

createContact(Contact contact) → Future<Contact>
Creates a new contact.
override
deleteContact(String id) → Future<void>
Deletes a contact by ID.
override
getAllContacts({bool withProperties = false, bool withThumbnail = false, bool withPhoto = false, bool sorted = true}) → Future<List<Contact>>
Gets all contacts from the device.
override
getContact(String id, {bool withProperties = true, bool withThumbnail = false, bool withPhoto = false}) → Future<Contact?>
Gets a specific contact by ID.
override
getPermissionStatus() → Future<PermissionStatus>
Gets the current permission status for contacts access.
override
getPlatformVersion() → Future<String?>
Gets the platform version.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
observeContacts() → Stream<List<Contact>>
Observes changes to the contacts database.
override
requestPermission({bool readOnly = false}) → Future<PermissionStatus>
Requests permission to access contacts.
override
searchContacts(String query, {bool withProperties = false, bool sorted = true}) → Future<List<Contact>>
Searches for contacts matching the given query.
override
toString() → String
A string representation of this object.
inherited
updateContact(Contact contact) → Future<Contact>
Updates an existing contact.
override

Operators

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