fetchDir static method
Fetches the local directory that matches the given localDir
.
Implementation
static Future<Directory> fetchDir(LocalDir localDir) {
switch (localDir) {
case LocalDir.appDocsDir:
return appDocsDir;
case LocalDir.tempDir:
return tempDir;
default:
return appSupportDir;
}
}