getRawSecondaryAttachment method

Future<Uint8List> getRawSecondaryAttachment(
  1. String sdkId,
  2. String documentId,
  3. String key
)

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);
}