DownloadQueue constructor

DownloadQueue(
  1. RequestApiHelperDownloadData data, {
  2. RequestApiHelperDownloadData? download,
  3. dynamic onProgress(
    1. int uploaded,
    2. int total
    )?,
  4. required Api type,
  5. String? url,
})

Implementation

DownloadQueue(this.data, {this.download, this.onProgress, required this.type, this.url}) {
  id = DateTime.now().millisecondsSinceEpoch;
}