UDownloadConfig constructor
UDownloadConfig({
- int maxConcurrent = 3,
- int maxPerHost = 2,
- int connections = 4,
- int minSegmentSize = 1024 * 1024,
- int speedLimit = 0,
- Duration stallTimeout = const Duration(seconds: 30),
- bool keepAwake = true,
- bool resumeOnStart = true,
- bool encryptQueue = false,
- UTransportOptions transport = const UTransportOptions(),
- String notificationIcon = "@mipmap/ic_launcher",
- String foregroundTitle(
- List<
UDownloadTask> active
- List<
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,
});