publishToDownloads static method

Future<String?> publishToDownloads(
  1. UStorageBackend backend,
  2. String sourcePath,
  3. String fileName, {
  4. String? mimeType,
  5. 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);