deleteContacts static method
Deletes contacts from the database.
Implementation
static Future<void> deleteContacts(List<Contact> contacts) async {
final ids = contacts.map((c) => c.id).toList();
if (ids.any((x) => x.isEmpty)) {
throw Exception('Cannot delete contacts without IDs');
}
if (contacts.any((c) => !c.isUnified)) {
throw Exception('Cannot delete raw contacts');
}
await _channel.invokeMethod('delete', ids);
}