getDefaultDiscoveryCacheFile function

File getDefaultDiscoveryCacheFile()

Implementation

File getDefaultDiscoveryCacheFile() {
  final env = Platform.environment[DiscoveryEnvVars.cacheFile];
  if (env != null && env.trim().isNotEmpty) {
    return File(env.trim());
  }
  return File('${getConfigDir().path}/discovery-cache.json');
}