downloadFile<T> method
下载文件
Implementation
Future<T> downloadFile<T>() async {
if (_savePath.isEmpty) {
throw Exception("savePath mast be not null!!!");
}
if (_url.isEmpty) {
throw Exception("_url mast be not null!!!");
}
return await NetworkManager.instance.downloadFile<T>(_url, _savePath,
onReceiveProgress: _progressCallBack,
options: _options,
queryParameters: _params);
}