AndroidDestinationType.custom constructor
AndroidDestinationType.custom({})
Save to specified directory
.
If it is a empty string, it points to each route.
If inPublicDir
is true
, it can be obtained by calling Environment.getExternalStoragePublicDirectory() of Android.
For example, /storage/emulated/0/
.
If inPublicDir
is false
, 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.
Implementation
factory AndroidDestinationType.custom({
bool? inPublicDir,
required String directory,
String? subDirectory,
}) {
return AndroidDestinationType._internal(directory)
.._setInPublicDir(inPublicDir)
..subDirectory(subDirectory);
}