DependencyRepositoryImpl class

Implementation of DependencyRepository responsible for managing project dependencies.

Implemented types

Constructors

DependencyRepositoryImpl(PubspecParser pubspecParser, ProjectAnalyzer projectAnalyzer)
Creates an instance of DependencyRepositoryImpl with the given pubspecParser and projectAnalyzer.

Properties

hashCode → int
The hash code for this object.
no setterinherited
projectAnalyzer → ProjectAnalyzer
Analyzes the project's used dependencies.
final
pubspecParser → PubspecParser
Parses dependencies from pubspec.yaml.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

getAllDependencies() → Future<Set<String>>
Retrieves all dependencies listed in pubspec.yaml, including dependencies and dev_dependencies.
override
getUsedDependencies() → Future<Set<String>>
Retrieves the set of dependencies that are actually used in the project's .dart files.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removeUnusedDependencies(Set<String> unusedDependencies) → Future<void>
Removes the specified unused dependencies from the project.
override
toString() → String
A string representation of this object.
inherited

Operators

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