modifyMessage method
Implementation
Future<EncryptedMessage> modifyMessage(String sdkId, EncryptedMessage entity) async {
final res = await _methodChannel.invokeMethod<String>(
'MessageApi.encrypted.modifyMessage',
{
"sdkId": sdkId,
"entity": jsonEncode(EncryptedMessage.encode(entity)),
}
);
if (res == null) throw AssertionError("received null result from platform method modifyMessage");
final parsedResJson = jsonDecode(res);
return EncryptedMessage.fromJSON(parsedResJson);
}