UsageService class
Service for detecting unused assets by scanning Dart code.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
findUnusedAssets(
List< String> allAssetPaths, Set<String> usedAssetPaths, String projectRoot) → Set<String> - Identifies assets not referenced in code.
-
findUsedAssetPaths(
String projectRoot) → Future< Set< String> > - Finds all asset paths referenced in Dart code.
-
normalizeAssetKey(
String assetPath, String projectRoot) → String - Normalizes an asset path for comparison.
-
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