PackageDependency class
Represents a resolved package dependency with version information.
This is used to track which packages can have their analyzer summaries cached and reused across builds.
Constructors
Properties
- cacheKey → String
-
Returns a unique cache key for this dependency.
no setter
- hashCode → int
-
The hash code for this object.
no setteroverride
- hostedUrl → String?
-
For hosted dependencies, the hosted URL (usually pub.dev).
final
- isCacheable → bool
-
Whether this dependency can have its summary cached.
no setter
- name → String
-
The package name (e.g., 'flutter', 'provider').
final
- path → String?
-
For path dependencies, the absolute path to the package.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sdkName → String?
-
For SDK dependencies, the SDK name ('dart' or 'flutter').
final
- source → String
-
The dependency source type.
final
- version → String
-
The exact resolved version (e.g., '3.32.0', '6.1.2').
final
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.
override