download method
Implementation
Future<String> download({required String savePath}) async {
try {
return await method.download(savePath: savePath);
} on ServerException catch (e) {
throw errorModel(
e.errorMessageModel.responseApi,
e.errorMessageModel.statusMessage,
ExpectType.download,
);
} catch (e) {
throw errorModel(null, e.toString(), ExpectType.download);
}
}