file_picker_writable library
Classes
- DropEvent
- All files of one drag-and-drop session, delivered as a group.
- DropItem
- One file of a drop session: fileInfo describes the dropped file and file is a temporary copy of its contents.
- ErrorEvent
- FileInfo
- Contains information about a user selected file.
- FilePickerState
- State of the FilePickerWritable plugin to add listeners for events like file opening and error handling.
- FilePickerWritable
- Singleton to accessing services of the FilePickerWritable plugin.
Typedefs
-
DropHandler
= FutureOr<
bool> Function(DropEvent drop) -
DropHandlers are registered as callbacks to be called when files are
dropped onto the app window.
dropgroups every file of one drag session. Temp files are deleted once the drop is handled, so copy them elsewhere first to keep them. - DropHoverHandler = void Function(bool entered)
-
DropHoverHandlers are called when a drag hovers over (
enteredis true) or leaves (enteredis false) the app window. Use it to highlight a drop target. Currently delivered on Android only. -
ErrorEventHandler
= Future<
bool> Function(ErrorEvent errorEvent) -
FileInfoHandler
= FutureOr<
bool> Function(FileInfo fileInfo) -
FileOpenHandler
= FutureOr<
bool> Function(FileInfo fileInfo, File file) -
FileOpenHandlers are registered as callbacks to be called when
the app is launched for a file selection.
file(andfileInfo.file will be deleted after this function completes.) -
FileReader<
T> = Future< T> Function(FileInfo fileInfo, File file) - UriHandler = bool Function(Uri uri)