EnvironmentDirectory class

Enumeration to all fields of android.os.Environment class available to API level 16 or higher

  • You can also create a custom EnvironmentDirectory by using custom constructor

  • This generally returns a directory pointing to /storage/emulated/0/[this]

Refer to details

Constructors

EnvironmentDirectory.custom(String folder)
Define a custom folder
const

Properties

hashCode int
The hash code for this object.
no setteroverride
id String
final
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.
override

Operators

operator ==(Object other) bool
The equality operator.
override

Constants

alarms → const EnvironmentDirectory
Available for Android 4.1 to 9.0
dcim → const EnvironmentDirectory
Available for Android 4.1 to 9
downloads → const EnvironmentDirectory
Available for Android 4.1 to 9
movies → const EnvironmentDirectory
Available for Android 4.1 to 9
music → const EnvironmentDirectory
Available for Android 4.1 to 9
notifications → const EnvironmentDirectory
Available for Android 4.1 to 9
pictures → const EnvironmentDirectory
Available for Android 4.1 to 9
podcasts → const EnvironmentDirectory
Available for Android 4.1 to 9
ringtones → const EnvironmentDirectory
Available for Android 4.1 to 9