getCacheDirectoryPath static method

Future<String> getCacheDirectoryPath()

获取缓存目录路径

Implementation

static Future<String> getCacheDirectoryPath() async {
  final Directory cacheDir = await getTemporaryDirectory();
  return cacheDir.path;
}