pickPhoneContact static method

Future<PhoneContact> pickPhoneContact({
  1. bool askForPermission = true,
})

Picks a PhoneContact. Requires hasPermission on Android 11+ and xiaomi devices See Also PhoneContact

Implementation

static Future<PhoneContact> pickPhoneContact(
        {

        /// Whether to automatically request the required permission if needed or not (See [requestPermission] and [hasPermission])
        bool askForPermission = true}) async =>
    ContactPickerPlatform.instance
        .pickPhoneContact(askForPermission: askForPermission);