AndroidDestinationType class
Save destination on android.
Constructors
- AndroidDestinationType.custom({bool? inPublicDir, required String directory, String? subDirectory})
-
Save to specified
directory
. If it is a empty string, it points to each route. IfinPublicDir
istrue
, it can be obtained by calling Environment.getExternalStoragePublicDirectory() of Android. For example,/storage/emulated/0/
. IfinPublicDir
isfalse
, it can be obtained by calling context.getExternalFilesDir() of Android. For example,/storage/emulated/0/Android/data/<applicationId>/files
.subDirectory
can contain a file name.factory
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
-
inExternalFilesDir(
) → void - When this is called, it will be saved in the location that can be obtained by calling context.getExternalFilesDirs().
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
subDirectory(
String? subDirectory) → void - Specify sud directory that inclueds file name.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- directoryDCIM → AndroidDestinationType
-
Environment.DIRECTORY_DCIM
final
- directoryDownloads → AndroidDestinationType
-
Environment.DIRECTORY_DOWNLOADS
final
- directoryMovies → AndroidDestinationType
-
Environment.DIRECTORY_MOVIES
final
- directoryPictures → AndroidDestinationType
-
Environment.DIRECTORY_PICTURES
final