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