ReferenceIo extension

Uploads from and downloads to files.

on

Methods

putFile(File file, {SettableMetadata? metadata, Uri? existingSessionUri}) → UploadTask

Available on Reference, provided by the ReferenceIo extension

Uploads file with a resumable upload that streams it from disk, so the file is never held in memory. See Reference.startUpload for metadata and existingSessionUri.
startDownloadToFile(File file) → DownloadTask

Available on Reference, provided by the ReferenceIo extension

Starts a download of the object into file that can be paused, resumed and canceled, and resumes by itself after a network failure; see DownloadTask.
writeToFile(File file) → Future<int>

Available on Reference, provided by the ReferenceIo extension

Downloads the object into file and returns its size in bytes: startDownloadToFile without the controls, so it resumes after a network failure the same way.