deleteAllMessages method Null safety
Deletes all the messages of the conversation from both the memory and local database.
Throws A description of the exception. See {@link EMError}.
Implementation
Future<void> deleteAllMessages() async {
Map result = await _emConversationChannel.invokeMethod(
ChatMethodKeys.clearAllMessages, this._toJson());
try {
EMError.hasErrorFromResult(result);
} on EMError catch (e) {
throw e;
}
}