DartProject.fromCache constructor
Loads the project from the dart pub cache
named name
for the version version
.
e.g. ~/.pub-cache/hosted/pub.dartlang.org/dswitch-4.0.1
Implementation
DartProject.fromCache(String name, String version) {
_pathToProjectRoot = truepath(PubCache().pathToPackage(name, version));
}