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