UDownloadRequest constructor

const UDownloadRequest({
  1. String url = "",
  2. String? sourceId,
  3. List<String> mirrors = const <String>[],
  4. Map<String, String> headers = const <String, String>{},
  5. String? fileName,
  6. String? title,
  7. String? mimeType,
  8. UDownloadDestination destination = const UDownloadDestination.downloads(),
  9. UDownloadPriority priority = UDownloadPriority.normal,
  10. int? connections,
  11. int speedLimit = 0,
  12. UChecksum? checksum,
  13. bool wifiOnly = false,
  14. DateTime? startAt,
  15. UDownloadConflict conflict = UDownloadConflict.rename,
  16. int maxRetries = 8,
  17. bool useSystemDownloader = false,
  18. bool openWhenDone = false,
  19. bool notifyWhenDone = false,
  20. bool visible = true,
  21. bool persistent = true,
  22. Duration? expireIn,
  23. String? tag,
  24. Map<String, String> metadata = const <String, String>{},
})

Implementation

const UDownloadRequest({
  this.url = "",
  this.sourceId,
  this.mirrors = const <String>[],
  this.headers = const <String, String>{},
  this.fileName,
  this.title,
  this.mimeType,
  this.destination = const UDownloadDestination.downloads(),
  this.priority = UDownloadPriority.normal,
  this.connections,
  this.speedLimit = 0,
  this.checksum,
  this.wifiOnly = false,
  this.startAt,
  this.conflict = UDownloadConflict.rename,
  this.maxRetries = 8,
  this.useSystemDownloader = false,
  this.openWhenDone = false,
  this.notifyWhenDone = false,
  this.visible = true,
  this.persistent = true,
  this.expireIn,
  this.tag,
  this.metadata = const <String, String>{},
});