upload method
Asynchronously uploads a file to the currently specified
FileStorageReference, with optional metadata
.
Implementation
FileUploadTask upload(File file, [Map<String, String>? metadata]) {
assert(file.existsSync());
final FileUploadTask task = FileUploadTask._(this, file, metadata);
task._start();
return task;
}