PackageGraph class
A graph of the package dependencies for an application.
Constructors
- PackageGraph.fromRoot(PackageNode root)
-
Creates a PackageGraph given the
root
PackageNode.factory
Properties
-
allPackages
→ Map<
String, PackageNode> -
All
PackageNode
s indexed by package name.final - asPackageConfig → PackageConfig
-
A
PackageConfig
representation of this package graph.final - hashCode → int
-
The hash code for this object.
no setterinherited
- root → PackageNode
-
The root application package.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
-
operator [](
String packageName) → PackageNode? - Shorthand to get a package by name.
Static Methods
-
forPath(
String packagePath) → Future< PackageGraph> -
Creates a
PackageGraph
for the package whose top level directory lives atpackagePath
(no trailing slash). -
forThisPackage(
) → Future< PackageGraph> -
Creates a
PackageGraph
for the package in which you are currently running.