selectContact method

Future<Contact> selectContact()

Brings up a dialog where the user can select a contact from his/her address book.

Returns the Contact selected by the user, or null if the user canceled out of the dialog.

Implementation

Future<Contact> selectContact() async {
  final Map<dynamic, dynamic> result =
      await _channel.invokeMethod('selectContact');
  return Contact.fromMap(result);
}