FlutterFileDialog class
File picking/saving dialogs for Android and iOS.
Constructors
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
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
isPickDirectorySupported(
) → Future< bool> -
pickDirectory(
) → Future< DirectoryLocation?> - Displays a dialog for picking a directory. Availabe on Android 21/iOS 13 and above. Use isPickDirectorySupported to check whether the current platform supports pickDirectory or not if you are targeting an older version of Android/iOS.
-
pickFile(
{OpenFileDialogParams? params}) → Future< String?> - Displays a dialog for picking a file.
-
saveFile(
{SaveFileDialogParams? params}) → Future< String?> - Displays a dialog for selecting a location where to save the file and saves the file to the selected location.
-
saveFileToDirectory(
{required DirectoryLocation directory, required Uint8List data, required String fileName, String? mimeType, bool replace = false, Future onFileExists()?}) → Future< String?> -
Saves a file to the specified directory that picked by pickDirectory.
The file is saving in background, be sure the
directory
is permission granted. Availabe on Android 21/iOS 13 and above.