showSaveFilePicker static method
Prompts the user to select a file to save to using
window.showSaveFilePicker() (File System Access API) and returns the
resulting FileSystemOpfsWebFileHandle, suitable for withFileHandles.
The file is created empty if it does not exist yet, and the returned
handle is granted readwrite permission.
See FileSystemOpfsWebShowSaveFilePickerOptions for the available
options (id, startIn, suggestedName, excludeAcceptAllOption,
types).
Chromium-only, must be called from a user gesture. Throws if the user cancels the picker or if the browser does not support it.
Only available on the web.
Implementation
static Future<FileSystemOpfsWebFileHandle> showSaveFilePicker([
FileSystemOpfsWebShowSaveFilePickerOptions? options,
]) => fileSystemOpfsWebShowSaveFilePickerImpl(options);