fetchPath static method

Future<String> fetchPath(
  1. LocalDir localDir
)

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;
  }
}