BaseDirectory enum
Base directory in which files will be stored, based on their relative path.
These correspond to the directories provided by the path_provider package
Constructors
- BaseDirectory()
-
const
Values
- applicationDocuments → const BaseDirectory
-
As returned by getApplicationDocumentsDirectory()
- temporary → const BaseDirectory
-
As returned by getTemporaryDirectory()
- applicationSupport → const BaseDirectory
-
As returned by getApplicationSupportDirectory()
- applicationLibrary → const BaseDirectory
-
As returned by getApplicationLibrary() on iOS. For other platforms this resolves to the subdirectory 'Library' created in the directory returned by getApplicationSupportDirectory()
- root → const BaseDirectory
-
System root directory. This allows you to set a path to any directory via Task.directory. Only use this if you are certain that this path is stable. on iOS and Android, references to paths within the application's directory structure are not stable, and you should use applicationDocuments, applicationSupport or applicationLibrary instead to avoid errors.
Properties
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
Constants
-
values
→ const List<
BaseDirectory> - A constant List of the values in this enum, in order of their declaration.