downloadFile method

Future<void> downloadFile({
  1. required String downloadUrl,
  2. required String savePath,
})

Download the file from the DownloadFileOptions

Implementation

Future<void> downloadFile({
  required String downloadUrl,
  required String savePath,
}) async {
  Dio dio = Dio();

  await dio.download(downloadUrl, savePath);
}