A writable file handle (e.g. from showSaveFilePicker()) whose createWritable supplies the destination stream.
Abort the writable stream, discarding partial output where the platform
supports it (falling back to close otherwise).
Optionalreason: unknownOptional cause forwarded to the stream's abort.
Close the writable stream, committing the file to disk.
An empty SinkResult — the data lives at the handle's location.
Open a writable stream on the handle, discarding any existing file contents.
File metadata (unused; the handle already names the destination).
Write a chunk at an absolute position in the file.
Byte position at which to write.
The chunk bytes.
Error if called before open.
StorageSink that streams received bytes to disk through the browser File System Access API.
Data is written at absolute positions via a
FileSystemWritableFileStream, so the file need never be held in memory — suitable for large downloads. Pass aFileSystemFileHandleobtained fromshowSaveFilePicker()or similar.