getContact method
Fetches a single contact by ID
id
- The unique identifier of the contact
withProperties
- Whether to include detailed properties
withThumbnail
- Whether to include low-resolution thumbnail
withPhoto
- Whether to include high-resolution photo
Implementation
Future<Result<Contact?>> getContact(
String id, {
bool withProperties = true,
bool withThumbnail = false,
bool withPhoto = false,
}) async {
_ensureInitialized();
return _getContactUseCase.call(
GetContactParams(
id: id,
withProperties: withProperties,
withThumbnail: withThumbnail,
withPhoto: withPhoto,
),
);
}