updateContact method

Future updateContact (
  1. Contact contact,
  2. {bool deletePhoto: false}
)

//////////////////////////////////////////////// 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]);