DART_PUB_HOME top-level property
String
DART_PUB_HOME
dart的.pub-cache地址
Implementation
String get DART_PUB_HOME {
final path = Platform.environment['DART_PUB_HOME'] ?? '';
if (path.isEmpty) {
throw Exception('Unable to find DART_PUB_HOME in environment variables, you must configure it first.');
}
return path;
}