getAttachmentUrl method
Implementation
Future<String> getAttachmentUrl(String sdkId, String documentId, String attachmentId) async {
final res = await _methodChannel.invokeMethod<String>(
'DocumentTemplateApi.getAttachmentUrl',
{
"sdkId": sdkId,
"documentId": jsonEncode(documentId),
"attachmentId": jsonEncode(attachmentId),
}
);
if (res == null) throw AssertionError("received null result from platform method getAttachmentUrl");
final parsedResJson = jsonDecode(res);
return (parsedResJson as String);
}