file_support library Null safety

Classes

FileSupport

Properties

disablePathProviderPlatformOverride bool
@Deprecated('This is no longer necessary, and is now a no-op'), @visibleForTesting, write-only

Functions

getApplicationDocumentsDirectory() Future<Directory>
Path to a directory where the application may place data that is user-generated, or that cannot otherwise be recreated by your application. [...]
getApplicationSupportDirectory() Future<Directory>
Path to a directory where the application may place application support files. [...]
getDownloadsDirectory() Future<Directory?>
Path to the directory where downloaded files can be stored. This is typically only relevant on desktop operating systems. [...]
getExternalCacheDirectories() Future<List<Directory>?>
Paths to directories where application specific external cache data can be stored. These paths typically reside on external storage like separate partitions or SD cards. Phones may have multiple storage directories available. [...]
getExternalStorageDirectories({StorageDirectory? type}) Future<List<Directory>?>
Paths to directories where application specific data can be stored. These paths typically reside on external storage like separate partitions or SD cards. Phones may have multiple storage directories available. [...]
getExternalStorageDirectory() Future<Directory?>
Path to a directory where the application may access top level storage. The current operating system should be determined before issuing this function call, as this functionality is only available on Android. [...]
getLibraryDirectory() Future<Directory>
Path to the directory where application can store files that are persistent, backed up, and not visible to the user, such as sqlite.db. [...]
getTemporaryDirectory() Future<Directory>
Path to the temporary directory on the device that is not backed up and is suitable for storing caches of downloaded files. [...]

Enums

StorageDirectory
Corresponds to constants defined in Androids android.os.Environment class. [...]

Exceptions / Errors

MissingPlatformDirectoryException
An exception thrown when a directory that should always be available on the current platform cannot be obtained.