ProjectAnalyzer class
Scans the project's source files to detect used packages.
Constructors
-
ProjectAnalyzer.new({required List<
String> directoriesToAnalyze, required List<String> directoriesToIgnore}) - Creates a ProjectAnalyzer with the given directories to analyze and ignore.
Properties
-
directoriesToAnalyze
→ List<
String> -
Directories to scan for package usage.
final
-
directoriesToIgnore
→ List<
String> -
Directories to ignore during analysis.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
getUsedPackages(
) → Future< Set< String> > - Returns a set of packages that are actually used in the project.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited