loadMessages method
void
loadMessages()
Retrieves chatwoot client's messages. If persistence is enabled ChatwootCallbacks.onPersistedMessagesRetrieved will be triggered with persisted messages. On successfully fetch from remote server ChatwootCallbacks.onMessagesRetrieved will be triggered
Implementation
void loadMessages() async {
_repository.getPersistedMessages();
await _repository.getMessages();
}