ConstOpen the file browser to pick one file.
Optional extension filter.
The file as a PickedFile, or file: null if the user cancels. An error if
an extension in allowedExtensions is invalid.
Open the file browser to pick several files.
Optional extension filter.
The files as PickedFile objects. The array is empty if the user cancels. An
error if an extension in allowedExtensions is invalid.
Android only for now. Requires the file_picker plugin to be enabled in the app configuration.
allowedExtensions to limit the choice. Invalid extensions are rejected before the
picker opens.file is null for FilePicker.pickFile
and files is empty for FilePicker.pickFiles.FileSaver.saveUrl if you need to keep it.
File picker plugin for choosing any file from the device.