FileSelectorPlatform class Null safety

The interface that implementations of file_selector must implement.

Platform implementations should extend this class rather than implement it as file_selector 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 FileSelectorPlatform methods.

Inheritance

Constructors

FileSelectorPlatform()
Constructs a FileSelectorPlatform.

Properties

hashCode int
The hash code for this object.
read-onlyinherited
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

Methods

getDirectoryPath({String? initialDirectory, String? confirmButtonText}) Future<String?>
Open file dialog for loading directories and return a directory path Returns null if user cancels the operation.
getSavePath({List<XTypeGroup>? acceptedTypeGroups, String? initialDirectory, String? suggestedName, String? confirmButtonText}) Future<String?>
Open file dialog for saving files and return a file path at which to save Returns null if user cancels the operation.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
openFile({List<XTypeGroup>? acceptedTypeGroups, String? initialDirectory, String? confirmButtonText}) Future<XFile?>
Open file dialog for loading files and return a file path Returns null if user cancels the operation.
openFiles({List<XTypeGroup>? acceptedTypeGroups, String? initialDirectory, String? confirmButtonText}) Future<List<XFile>>
Open file dialog for loading files and return a list of file paths
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

instance FileSelectorPlatform
The default instance of FileSelectorPlatform to use.
read / write