DartProject.fromCache constructor

DartProject.fromCache(
  1. String name,
  2. String version
)

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));
}