updateContact method
//////////////////////////////////////////////// UPDATING CONTACTS /// //////////////////////////////////////////////// Updates existing contact
To delete the photo, explicitly set deletePhoto
to true
Implementation
/// Updates existing contact
///
/// To delete the photo, explicitly set [deletePhoto] to true
static Future updateContact(Contact contact,
{bool deletePhoto = false}) async =>
await _channel.invokeMethod(
'update', [contact.toJson(includePhoto: true), deletePhoto]);