UDownloadPlatform class abstract final

Where a finished download is handed to the user.

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

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

Operators

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

Static Properties

isWeb → bool
True when running in a browser, where finished files go through the browser's own download UI instead of a file path.
no setter

Static Methods

open(String pathOrUri, {String? mimeType}) → Future<bool>
publishToDownloads(UStorageBackend backend, String sourcePath, String fileName, {String? mimeType, String? subfolder}) → Future<String?>
Publishes sourcePath (a file in backend) into the user-visible Downloads location. Returns the resulting path or URI; the source is consumed.
reveal(String pathOrUri) → Future<bool>
saveAs(UStorageBackend backend, String sourcePath, String fileName, {String? mimeType}) → Future<String?>
Lets the user choose where to save. Returns the destination, or null if cancelled.