updateFile method

Future<String> updateFile({
  1. required String path,
  2. required File newFile,
  3. SettableMetadata? metadata,
})

Updates (replaces) the file at path with a new File.

Internally calls uploadFile; the old file is overwritten. Returns the new public download URL.

Implementation

Future<String> updateFile({
  required String path,
  required File newFile,
  SettableMetadata? metadata,
}) => uploadFile(path: path, file: newFile, metadata: metadata);