openExternalInsert static method

Future<Contact?> openExternalInsert([
  1. Contact? contact
])

Opens external contact app to insert a new contact.

Optionally specify a Contact to pre-fill the data from.

Implementation

static Future<Contact?> openExternalInsert([Contact? contact]) async {
  final args = contact != null ? [contact.toJson()] : [];
  final id = await _channel.invokeMethod(
    'openExternalInsert',
    args,
  );
  return id == null ? null : getContact(id);
}