UDownloadConfig constructor

UDownloadConfig({
  1. int maxConcurrent = 3,
  2. int maxPerHost = 2,
  3. int connections = 4,
  4. int minSegmentSize = 1024 * 1024,
  5. int speedLimit = 0,
  6. Duration stallTimeout = const Duration(seconds: 30),
  7. bool keepAwake = true,
  8. bool resumeOnStart = true,
  9. bool encryptQueue = false,
  10. UTransportOptions transport = const UTransportOptions(),
  11. String notificationIcon = "@mipmap/ic_launcher",
  12. String foregroundTitle(
    1. List<UDownloadTask> active
    )?,
})

Implementation

UDownloadConfig({
  this.maxConcurrent = 3,
  this.maxPerHost = 2,
  this.connections = 4,
  this.minSegmentSize = 1024 * 1024,
  this.speedLimit = 0,
  this.stallTimeout = const Duration(seconds: 30),
  this.keepAwake = true,
  this.resumeOnStart = true,
  this.encryptQueue = false,
  this.transport = const UTransportOptions(),
  this.notificationIcon = "@mipmap/ic_launcher",
  this.foregroundTitle,
});