pubCacheDirectory property
String?
get
pubCacheDirectory
Implementation
String? get pubCacheDirectory {
final pubCache = environment['PUB_CACHE'];
if (pubCache != null && pubCache.isNotEmpty) return pubCache;
if (isWindows) {
final localAppData = environment['LOCALAPPDATA'];
if (localAppData != null && localAppData.isNotEmpty) {
return _path.join(localAppData, 'Pub', 'Cache');
}
}
final home = homeDirectory;
return home == null ? null : _path.join(home, '.pub-cache');
}