DiskRoot enum
The folders on the device a local disk can live in.
| Root | iOS | Android |
|---|---|---|
support |
Library/Application Support | files |
documents |
Documents | app_flutter |
cache |
Library/Caches | cache |
temporary |
tmp | cache/tmp |
library |
Library | not available |
downloads |
Downloads (app-private) | Android/data/…/files/Download |
external |
not available | Android/data/…/files |
temporary is the OS temp folder, not path_provider's
getTemporaryDirectory(), which returns the caches folder on iOS and
Android. downloads is private to the app on both platforms: it is not
the Downloads folder the user sees.
Values
- support → const DiskRoot
-
Files the app manages. Backed up; not visible to the user.
- documents → const DiskRoot
-
Files that belong to the user. Backed up, and shown in the iOS Files app when file sharing is turned on.
- cache → const DiskRoot
-
Files the app can fetch again. Not backed up; the OS may delete them when space is low.
- temporary → const DiskRoot
-
Scratch files. Not backed up; iOS may delete them whenever the app isn't running.
- library → const DiskRoot
-
The iOS and macOS Library folder.
- downloads → const DiskRoot
-
An app-private downloads folder.
- external → const DiskRoot
-
Android's app-specific external storage.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- name → String
-
Available on Enum, provided by the EnumName extension
The name of the enum value.no setter - 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
-
resolve(
) → Future< String> - The absolute path of this folder on the current device.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited