DownloadOption constructor

const DownloadOption({
  1. DownloadBehavior behavior = DownloadBehavior.preferUsingCache,
  2. RedecideFilepathHandler? redecideHandler,
  3. bool ignoreHeadError = false,
  4. FilepathConflictHandler conflictHandler = _defaultConflictHandler,
  5. FilepathSuffixBuilder suffixBuilder = _defaultSuffixBuilder,
  6. bool alsoUpdateCache = false,
  7. Duration maxAgeForCache = const Duration(days: 30),
  8. Duration? headTimeout,
  9. 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,
});