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