Factory methods that build FilePickerOptions for common workflows.
Each method sets FilePickerOptions.mode and sensible defaults. Combine with FilePickerOptions.copyWith for further customization.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
openFiles(
{FilePickerType type = FilePickerType.any, SelectionMode selection = SelectionMode.single, List< FileTypeFilter> customFilters = const [], bool showThumbnails = true, String? initialDirectory, FilePickerPresentation presentation = FilePickerPresentation.modal, FilePickerTransition transition = const FilePickerTransition(), FilePickerTheme theme = const FilePickerTheme()}) → FilePickerOptions - Options for FilePickerMode.open.
-
openFolder(
{SelectionMode selection = SelectionMode.single, String? initialDirectory, FilePickerPresentation presentation = FilePickerPresentation.modal, FilePickerTransition transition = const FilePickerTransition(), FilePickerTheme theme = const FilePickerTheme()}) → FilePickerOptions - Options for FilePickerMode.folder.
-
saveFile(
{required String suggestedFileName, FilePickerType type = FilePickerType.any, List< FileTypeFilter> customFilters = const [], String? initialDirectory, bool confirmExistingFile = true, FilePickerPresentation presentation = FilePickerPresentation.modal, FilePickerTransition transition = const FilePickerTransition(), FilePickerTheme theme = const FilePickerTheme()}) → FilePickerOptions - Options for FilePickerMode.save.