WellKnownDirectory enum
Lets a website pick one of several well-known directories when used with file picker / directory picker.
See each value which describes its meaning, and gives possible example paths on different operating systems.
Values
- desktop → const WellKnownDirectory
-
The user’s Desktop directory, if such a thing exists. For example this could be:
- C:\Documents and Settings\username\Desktop
- /Users/username/Desktop
- /home/username/Desktop
- documents → const WellKnownDirectory
-
Directory in which documents created by the user would typically be stored. For example:
- C:\Documents and Settings\username\My Documents
- /Users/username/Documents
- /home/username/Documents
- downloads → const WellKnownDirectory
-
Directory where downloaded files would typically be stored. For example:
- C:\Documents and Settings\username\Downloads
- /Users/username/Downloads
- /home/username/Downloads
- music → const WellKnownDirectory
-
Directory where audio files would typically be stored. For example:
- C:\Documents and Settings\username\My Documents\My Music
- /Users/username/Music
- /home/username/Music
- pictures → const WellKnownDirectory
-
Directory where photos and other still images would typically be stored. For example:
- C:\Documents and Settings\username\My Documents\My Pictures
- /Users/username/Pictures
- /home/username/Pictures
- videos → const WellKnownDirectory
-
Directory where videos/movies would typically be stored. For example:
- C:\Documents and Settings\username\My Documents\My Videos
- /Users/username/Movies
- /home/username/Videos
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
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
-
values
→ const List<
WellKnownDirectory> - A constant List of the values in this enum, in order of their declaration.