deleteAllMessages method
Deletes all the messages of the conversation from both the memory and local database.
Throws A description of the exception. See ChatError.
Implementation
Future<void> deleteAllMessages() async {
try {
Map result = await platform_interface.Client.instance.conversationManager
.callNativeMethod(ChatMethodKeys.clearAllMessages, _toJson());
ChatError.hasErrorFromResult(result);
} catch (e) {
rethrow;
}
}