UDownloadDestination class

Where a download ends up.

Constructors

UDownloadDestination.cache(String key)
Re-creatable storage that is evicted under pressure.
const
UDownloadDestination.downloads({String? subfolder})
The user's Downloads: MediaStore on Android, Documents (Files app) on iOS, ~/Downloads on desktop and the browser's download bar on the web.
const
UDownloadDestination.file(String path)
An explicit file path (native only).
const
UDownloadDestination.fromJson(Map<String, dynamic> json)
factory
UDownloadDestination.memory()
Keeps the bytes in UDownloadTask.bytes. For small files only.
const
UDownloadDestination.saveAs()
Asks the user where to save once the download finishes.
const
UDownloadDestination.storage(String key, {UStorageBucket bucket = UStorageBucket.support})
Silent, private storage under key — read it back with UFileStorage.
const
UDownloadDestination.vault(String key)
Encrypted while downloading; plaintext never touches the disk.
const

Properties

bucket → UStorageBucket
final
hashCode → int
The hash code for this object.
no setterinherited
isEncrypted → bool
no setter
key → String?
final
path → String?
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
subfolder → String?
final
target → UDownloadTarget
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited