modifyMessage method

Future<EncryptedMessage> modifyMessage(
  1. String sdkId,
  2. EncryptedMessage entity
)

Implementation

Future<EncryptedMessage> modifyMessage(String sdkId, EncryptedMessage entity) async {
	final res = await _methodChannel.invokeMethod<String>(
		'MessageBasicApi.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);
}