DartProject.fromPath constructor
Load a dart project from the given directory.
We search up the tree starting from pathToSearchFrom
until we find a pubspec.yaml and that becomes the
project root. directory.
Implementation
DartProject.fromPath(String pathToSearchFrom, {bool search = false}) {
if (search) {
_pathToProjectRoot = _findProjectRoot(pathToSearchFrom);
} else {
_pathToProjectRoot = pathToSearchFrom;
}
_pathToProjectRoot = truepath(_pathToProjectRoot);
}