FilePickerState class

State of the FilePickerWritable plugin to add listeners for events like file opening and error handling.

Constructors

FilePickerState()

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
registerDropHandler(DropHandler dropHandler) → void
Registers dropHandler to be called with every file dropped onto the app window, grouped into one DropEvent per drag session. Temp files are deleted once the drop is handled, so copy them elsewhere first to keep them. Drops that arrive before any handler is registered wait in a queue and are delivered, oldest first, when a handler registers. Currently delivered on Android only.
registerDropHoverHandler(DropHoverHandler hoverHandler) → void
Registers hoverHandler to be called when a drag hovers over (true) or leaves (false) the app window. Currently delivered on Android only.
registerErrorEventHandler(ErrorEventHandler errorEventHandler) → void
Registers errorEventHandler which will be called when an error occurs during open handlers, when it can't be delivered otherwise. (ie. an error during initialisation of openURLs/File Open)
registerFileInfoHandler(FileInfoHandler fileInfoHandler) → void
deprecated: use registerFileOpenHandler instead.
registerFileOpenHandler(FileOpenHandler fileOpenHandler) → void
Registers the fileOpenHandler to be called when the app is launched with a file it should open. The fileOpenHandler will receive a file object which will be deleted once it returns.
registerUriHandler(UriHandler uriHandler) → void
removeDropHandler(DropHandler dropHandler) → bool
Removes the given dropHandler.
removeDropHoverHandler(DropHoverHandler hoverHandler) → bool
Removes the given hoverHandler.
removeErrorEventHandler(ErrorEventHandler errorEventHandler) → void
removeFileInfoHandler(FileInfoHandler fileInfoHandler) → bool
removeFileOpenHandler(FileOpenHandler fileOpenHandler) → bool
Removes the given fileOpenHandler.
removeUriHandler(UriHandler uriHandler) → void
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited