DependencyGraphMetrics class

Stores graph-derived metrics for a dependency.

Annotations
  • @immutable

Constructors

DependencyGraphMetrics({required int maxDepth, required int transitiveCount, required int directDependents, required List<List<String>> paths, required double centrality})
Creates graph metrics for a dependency.
const

Properties

centrality → double
A lightweight centrality score used for graph summaries.
final
directDependents → int
The number of direct dependents that reference this package.
final
hashCode → int
The hash code for this object.
no setterinherited
maxDepth → int
The deepest discovered path from the dependency to a leaf.
final
paths → List<List<String>>
The dependency paths used to derive depth and transitive metrics.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
transitiveCount → int
The number of reachable transitive packages below this dependency.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, Object?>
Serializes these metrics for reports.
toString() → String
A string representation of this object.
inherited

Operators

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