downloadDocumentBytes method

  1. @override
Future<Uint8List?> downloadDocumentBytes(
  1. String? idToken,
  2. String reference,
  3. 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;
  }
}