fetchDir static method

Future<Directory> fetchDir(
  1. LocalDir localDir
)

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