hasWriteAccess method
Implementation
Future<bool> hasWriteAccess(String sdkId, Document document) async {
final res = await _methodChannel.invokeMethod<String>(
'DocumentApi.hasWriteAccess',
{
"sdkId": sdkId,
"document": jsonEncode(Document.encode(document)),
}
);
if (res == null) throw AssertionError("received null result from platform method hasWriteAccess");
final parsedResJson = jsonDecode(res);
return (parsedResJson as bool);
}