getAllContacts method

Future<Result<List<Contact>>> getAllContacts({
  1. bool withProperties = false,
  2. bool withThumbnail = false,
  3. bool withPhoto = false,
  4. bool sorted = true,
})

Fetches all contacts from the device

withProperties - Whether to include detailed contact properties withThumbnail - Whether to include low-resolution thumbnails withPhoto - Whether to include high-resolution photos sorted - Whether to sort contacts by display name

Implementation

Future<Result<List<Contact>>> getAllContacts({
  bool withProperties = false,
  bool withThumbnail = false,
  bool withPhoto = false,
  bool sorted = true,
}) async {
  _ensureInitialized();
  return _getContactsUseCase.call(
    GetContactsParams(
      withProperties: withProperties,
      withThumbnail: withThumbnail,
      withPhoto: withPhoto,
      sorted: sorted,
    ),
  );
}