reactive_file_selector library

Classes

FileSaveLocation
The response from a save dialog.
FileSelectorValidators
MultiFile<T>
ReactiveFileSelector<T>
A ReactiveFileSelector that contains a FileSelector.
XFile
A CrossFile is a cross-platform, simplified File abstraction.
XTypeGroup
A set of allowed XTypes.

Properties

x → Validator
final

Functions

getDirectoryPath({String? initialDirectory, String? confirmButtonText}) Future<String?>
Opens a directory selection dialog and returns the path chosen by the user.
getDirectoryPaths({String? initialDirectory, String? confirmButtonText}) Future<List<String?>>
Opens a directory selection dialog and returns a list of the paths chosen by the user.
getSaveLocation({List<XTypeGroup> acceptedTypeGroups = const <XTypeGroup>[], String? initialDirectory, String? suggestedName, String? confirmButtonText}) Future<FileSaveLocation?>
Opens a save dialog and returns the target path chosen by the user.
openFile({List<XTypeGroup> acceptedTypeGroups = const <XTypeGroup>[], String? initialDirectory, String? confirmButtonText}) Future<XFile?>
Opens a file selection dialog and returns the path chosen by the user.
openFiles({List<XTypeGroup> acceptedTypeGroups = const <XTypeGroup>[], String? initialDirectory, String? confirmButtonText}) Future<List<XFile>>
Opens a file selection dialog and returns the list of paths chosen by the user.

Typedefs

FileSelectorBuilder<T> = Widget Function(SelectFileCallback pickFile, MultiFile<T> files, FileSelectorChangeCallback<T> onChange)
FileSelectorChangeCallback<T> = void Function(MultiFile<T> files)
SelectFileCallback = Future<void> Function()