PubCache class

Used to locate and manipulate the dart pub cache

https://dart.dev/tools/pub/environment-variables

Constructors

PubCache()
factory

Properties

cacheDir String?
Returns the directory name of the pub cache.
no setter
hashCode int
The hash code for this object.
no setterinherited
pathTo String
The fully qualified path to the pub cache.
getter/setter pair
pathToBin String
The fully qualified path to the pub cache's bin directory where executables from installed packages are stored.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

reset() → void
only to be used for unit tests. It resets the paths so that they can pick up changes to HOME made by the unit tests.

Constants

envVarPubCache → const String
The name of the environment variable that can be set to change the location of the .pub-cache directory. You should change this path by calling pathTo.