pubCacheDirectory property

String? get pubCacheDirectory

Implementation

String? get pubCacheDirectory {
  final pubCache = Platform.environment['PUB_CACHE'];
  if (pubCache != null && pubCache.isNotEmpty) return pubCache;
  final home = homeDirectory;
  return home == null ? null : p.join(home, '.pub-cache');
}