fromProjectPath static method
Reads and parses .dart_tool/package_graph.json under projectPath.
Throws PackageGraphFileNotFoundException if the file is not found. Throws FormatException if the file is not a valid package graph file.
Implementation
static PackageGraph fromProjectPath(final String projectPath) {
return fromProjectDirectory(Directory(projectPath));
}