FcFilePickerUtil class
A utility class for picking files.
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
-
pickFile(
) → Future< FcFilePickerPath?> -
Picks a file and return a
XFile.
If the user cancels the picker, it returns
null
. -
pickFilesCore(
{bool? allowsMultiple}) → Future< List< FcFilePickerPath> ?> - Called by pickFile and pickMultipleFiles.
-
pickFolder(
{required bool writePermission}) → Future< FcFilePickerPath?> -
Picks a folder and return a
FcFilePickerXResult
. If the user cancels the picker, it returnsnull
. -
pickMultipleFiles(
) → Future< List< FcFilePickerPath> ?> -
Picks multiple files and return a list of
XFile.
If the user cancels the picker, it returns
null
. -
pickSaveFile(
{String? defaultName}) → Future< String?> -
Picks a save file location and return a String path.
You can optionally specify a default file name via
defaultName
. If the user cancels the picker, it returnsnull
.