getContact method

Future<Result<Contact?>> getContact(
  1. String id, {
  2. bool withProperties = true,
  3. bool withThumbnail = false,
  4. bool withPhoto = false,
})

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