fetchPath static method
Fetches the local directory path that matches the given localDir
.
Implementation
static Future<String> fetchPath(LocalDir localDir) {
switch (localDir) {
case LocalDir.appDocsDir:
return appDocsPath;
case LocalDir.tempDir:
return tempPath;
default:
return appSupportPath;
}
}