ContactService constructor
ContactService({})
Creates a new contact service.
apiClient
is the API client for making requests.
phoneNumberId
is the WhatsApp Business Account phone number ID.
logger
is used for logging contact service events.
Implementation
ContactService({
required ApiClient apiClient,
required String phoneNumberId,
required Logger logger,
}) : _apiClient = apiClient,
_phoneNumberId = phoneNumberId,
_logger = logger {
_logger.debug('ContactService initialized');
}