getAllContacts method
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,
),
);
}