writeToFile method

DownloadTask writeToFile(
  1. dynamic file
)

Downloads the object to a local file.

Parameters:

  • file: The destination file.

Returns: A DownloadTask to manage the download.

Example:

DownloadTask task = ref.writeToFile(myLocalFile);

Implementation

DownloadTask writeToFile(dynamic file) {
  return DownloadTask(file, storage, this);
}