DownloadTask constructor

DownloadTask({
  1. required String taskId,
  2. required DownloadTaskStatus status,
  3. required int progress,
  4. required String url,
  5. required String? filename,
  6. required String savedDir,
  7. required int timeCreated,
  8. required bool allowCellular,
})

Creates a new DownloadTask.

Implementation

DownloadTask({
  required this.taskId,
  required this.status,
  required this.progress,
  required this.url,
  required this.filename,
  required this.savedDir,
  required this.timeCreated,
  required this.allowCellular,
});