DownloadOption constructor
const
DownloadOption({
- DownloadBehavior behavior = DownloadBehavior.preferUsingCache,
- RedecideFilepathHandler? redecideHandler,
- bool ignoreHeadError = false,
- FilepathConflictHandler conflictHandler = _defaultConflictHandler,
- FilepathSuffixBuilder suffixBuilder = _defaultSuffixBuilder,
- bool alsoUpdateCache = false,
- Duration maxAgeForCache = const Duration(days: 30),
- Duration? headTimeout,
- Duration? downloadTimeout,
Implementation
const DownloadOption({
this.behavior = DownloadBehavior.preferUsingCache,
this.redecideHandler,
this.ignoreHeadError = false,
this.conflictHandler = _defaultConflictHandler,
this.suffixBuilder = _defaultSuffixBuilder,
this.alsoUpdateCache = false,
this.maxAgeForCache = const Duration(days: 30),
this.headTimeout,
this.downloadTimeout,
});