downloadFile2 function
Implementation
downloadFile2(Map<String, dynamic> map) async {
try {
var model = map['model'];
var apiService = map['apiService'];
MDResponse resEncrypted = await apiService.downloadFile(model);
MDResponse res = await resEncrypted.decryptData();
return res;
} on DioException catch (e) {
return ApiErrorHandler.getError(e);
} catch (e) {
debugPrint('e: $e');
return false;
}
}