downloadDocument method
Implementation
Future<Uint8List?> downloadDocument(String number, DocumentTypes type) async {
return await controller.downloadDocumentBytes(idToken.value, number, type);
/* if(responseBytes != null){
if(type == DocumentTypes.pdf){
await downloadFile(responseBytes, number, 'pdf');
//await Printing.layoutPdf(onLayout: (PdfPageFormat format) async => responseBytes);
} else if (type == DocumentTypes.xml){
await downloadFile(responseBytes, number, 'xml');
}
} */
}