UDownloadRequest constructor
const
UDownloadRequest({
- String url = "",
- String? sourceId,
- List<
String> mirrors = const <String>[], - Map<
String, String> headers = const <String, String>{}, - String? fileName,
- String? title,
- String? mimeType,
- UDownloadDestination destination = const UDownloadDestination.downloads(),
- UDownloadPriority priority = UDownloadPriority.normal,
- int? connections,
- int speedLimit = 0,
- UChecksum? checksum,
- bool wifiOnly = false,
- DateTime? startAt,
- UDownloadConflict conflict = UDownloadConflict.rename,
- int maxRetries = 8,
- bool useSystemDownloader = false,
- bool openWhenDone = false,
- bool notifyWhenDone = false,
- bool visible = true,
- bool persistent = true,
- Duration? expireIn,
- String? tag,
- 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>{},
});