pickPhoneContacts method

Future<List<PhoneContact>> pickPhoneContacts(
  1. {bool askForPermission = true,
  2. bool multiple = true}
)

Sister method to pickEmailContact to select multiple contact This will throw an UnsupportedError on all platform except web See Also pickEmailContact

Implementation

Future<List<PhoneContact>> pickPhoneContacts(
    {

    /// This doesn't do anything as web does not have permissions for now
    bool askForPermission = true,

    /// Whether to request multiple contacts or not
    bool multiple = true}) {
  return ContactPickerPlatform.instance.pickPhoneContacts(
      askForPermission: askForPermission, multiple: multiple);
}