FilePicker class Null safety

The interface that implementations of file_picker must implement.

Platform implementations should extend this class rather than implement it as file_picker does not consider newly added methods to be breaking changes. Extending this class (using extends) ensures that the subclass will get the default implementation, while platform implementations that implements this interface will be broken by newly added FilePicker methods.

Inheritance
Implementers

Constructors

FilePicker()

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

clearTemporaryFiles() Future<bool?>
Asks the underlying platform to remove any temporary files created by this plugin. [...]
getDirectoryPath({String? dialogTitle}) Future<String?>
Selects a directory and returns its absolute path. [...]
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
pickFiles({String? dialogTitle, FileType type = FileType.any, List<String>? allowedExtensions, dynamic onFileLoading(FilePickerStatus)?, bool allowCompression = true, bool allowMultiple = false, bool withData = false, bool withReadStream = false}) Future<FilePickerResult?>
Retrieves the file(s) from the underlying platform [...]
toString() String
A string representation of this object. [...]
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited

Static Properties

platform FilePicker
read / write