download method

  1. @override
Future<DownloadTask> download({
  1. String? fileName,
  2. required String url,
  3. required String savedDir,
  4. bool showNotification = true,
})
override

Implementation

@override
Future<DownloadTask> download({
  String? fileName,
  required String url,
  required String savedDir,
  bool showNotification = true,
}) async {
  var task = await EasyDownloader().download(
    url: url,
    path: savedDir,
    fileName: fileName,
    autoStart: true,
    headers: {'Referer': 'https://en1.savefrom.net/'},
  );

  if (showNotification) task.showNotification();

  return task;
}