sendMessage method
Sends chatwoot message. The echoId is your temporary message id. When message sends successfully
ChatwootMessage will be returned with the echoId
on ChatwootCallbacks.onMessageSent. If
message fails to send ChatwootCallbacks.onError will be triggered echoId
as data.
Implementation
Future<void> sendMessage(
{required String content, required String echoId}) async {
final request = ChatwootNewMessageRequest(content: content, echoId: echoId);
await _repository.sendMessage(request);
}