addContact method

  1. @override
Future<Contact> addContact(
  1. Contact contact
)
override

Adds the contact to the device contact list - returns the saved contact, so you can access the identifier

Implementation

@override
Future<Contact> addContact(Contact contact) async {
  final map = await channel.invokeMethod('addContact', contact.toMap());
  return Contact.fromMap(map, mode);
}