PackageGraph class final

.dart_tool/package_graph.json: who depends on whom, and at which version — what a tool checks constraints against, since overrides skip pub's own checks.

Properties

hashCode → int
The hash code for this object.
no setterinherited
nodes → Map<String, GraphNode>
Every package, by name.
final
roots → List<String>
The project's own package (and workspace members).
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

dependentsOf(String name) → Set<String>
The packages that depend on name directly (dev dependencies of the roots included).
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
shipsWithApp(String name) → bool
Whether a release build can reach name: it is a dependency (not only a dev dependency) of a root, directly or through others.
toString() → String
A string representation of this object.
inherited
versionOf(String name) → Version?
name's resolved version, or null.

Operators

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

Static Methods

read(String projectRoot) → PackageGraph?
The project's graph, or null when pub has not written one. For a member of a pub workspace it is the workspace's.