downloadDocumentBytes method
Future<Uint8List?>
downloadDocumentBytes(
- String? idToken,
- String reference,
- DocumentTypes type
override
Implementation
@override
Future<Uint8List?> downloadDocumentBytes(String? idToken, String reference, DocumentTypes type) async {
switch (type) {
case DocumentTypes.pdf:
return await apiController.downloadBytes(idToken, 'download-pdf/FES-$reference.pdf');
case DocumentTypes.xml:
return await apiController.downloadBytes(idToken, 'download-xml/FES-$reference.xml');
default: return null;
}
}