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
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
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