desktopPubCachePath top-level property

String get desktopPubCachePath

Implementation

String get desktopPubCachePath {
  final homeDir =
      Platform.environment['HOME'] ?? Platform.environment['USERPROFILE'];
  final pubCachePath =
      Platform.environment['PUB_CACHE'] ?? '$homeDir/.pub-cache';
  final pubHostedUrl = Platform.environment['PUB_HOSTED_URL'] ?? 'pub.dev';
  return "$pubCachePath/hosted/$pubHostedUrl";
}