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.
Constructors
Properties
Methods
-
dependentsOf(
String name) → Set< String> -
The packages that depend on
namedirectly (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.