updateMessage method Null safety
- EMMessage message
Updates the local message.
The message will be updated both in the cache and local database.
Throws A description of the exception. See {@link EMError}.
Implementation
Future<void> updateMessage(EMMessage message) async {
Map req = {"message": message.toJson()};
Map result =
await _channel.invokeMethod(ChatMethodKeys.updateChatMessage, req);
try {
EMError.hasErrorFromResult(result);
} on EMError catch (e) {
throw e;
}
}