pick static method
Future<List<PickedFile> ?>
pick(
- BuildContext context, {
- FilePickerOptions options = const FilePickerOptions(),
Opens the picker with complete configuration via options.
Returns null if the user dismisses the picker without confirming.
Otherwise returns the selected PickedFile items (files and/or folders
depending on FilePickerOptions.mode).
This is the recommended API when you need custom themes, strings, transitions, view modes, or filters in a single place.
Implementation
static Future<List<PickedFile>?> pick(
BuildContext context, {
FilePickerOptions options = const FilePickerOptions(),
}) {
return showUnifiedFilePicker(context, options: options);
}