openExternalEdit static method

Future<Contact?> openExternalEdit(
  1. String id
)

Opens external contact app to edit an existing contact.

Implementation

static Future<Contact?> openExternalEdit(String id) async {
  // New ID should be the same as original ID, but just to be safe.
  final newId = await _channel.invokeMethod(
      Platform.isAndroid ? 'openExternalEdit' : 'openExternalViewOrEdit',
      [id]);
  return newId == null ? null : getContact(newId);
}