publishToDownloads static method
Future<String?>
publishToDownloads(
- UStorageBackend backend,
- String sourcePath,
- String fileName, {
- String? mimeType,
- String? subfolder,
Publishes sourcePath (a file in backend) into the user-visible Downloads location.
Returns the resulting path or URI; the source is consumed.
Implementation
static Future<String?> publishToDownloads(UStorageBackend backend, String sourcePath, String fileName, {String? mimeType, String? subfolder}) =>
impl.publishToDownloads(backend, sourcePath, fileName, mimeType: mimeType, subfolder: subfolder);