shareWith method
Implementation
Future<Document> shareWith(String sdkId, String delegateId, Document document, DocumentShareOptions? options) async {
final res = await _methodChannel.invokeMethod<String>(
'DocumentApi.tryAndRecover.shareWith',
{
"sdkId": sdkId,
"delegateId": jsonEncode(delegateId),
"document": jsonEncode(Document.encode(document)),
"options": jsonEncode(options == null ? null : DocumentShareOptions.encode(options!)),
}
);
if (res == null) throw AssertionError("received null result from platform method shareWith");
final parsedResJson = jsonDecode(res);
return Document.fromJSON(parsedResJson);
}