AndroidExternalStorage class
class that provides methods to get external storage path and external public storage path example:
final downloadPath = await AndroidExternalStorage.getExternalStoragePublicDirectory(
DirType.downloadDirectory,
);
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- 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
Static Methods
-
getExternalStorageDirectory(
) → Future< String?> - Equivalent to android's Environment.getExternalStorageDirectory().getPath(). Return system's external storage path
-
getExternalStoragePublicDirectory(
_DirType type) → Future< String?> - Equivalent to android's Environment.getExternalStoragePublicDirectory(type).getPath(). Return top-level external storage directory for placing files of a particular type example:
-
getRootDirectory(
) → Future< String?> - Equivalent to android's Environment.getRootDirectory().getPath(). Return root of the "system" partition holding the core Android OS