shareWith method
Implementation
Future<EncryptedTopic> shareWith(String sdkId, String delegateId, EncryptedTopic topic, TopicShareOptions? options) async {
final res = await _methodChannel.invokeMethod<String>(
'TopicApi.encrypted.shareWith',
{
"sdkId": sdkId,
"delegateId": jsonEncode(delegateId),
"topic": jsonEncode(EncryptedTopic.encode(topic)),
"options": jsonEncode(options == null ? null : TopicShareOptions.encode(options!)),
}
).catchError(convertPlatformException);
if (res == null) throw AssertionError("received null result from platform method shareWith");
final parsedResJson = jsonDecode(res);
return EncryptedTopic.fromJSON(parsedResJson);
}