AssetScannerPlugin class
A scanner plugin that analyzes the assets declared in pubspec.yaml.
This plugin will flag:
- Missing assets (declared but file not found).
- Unused assets (file exists but not referenced in Dart code).
- Duplicate assets (multiple files with identical MD5 hash).
- Oversized assets (files larger than the configured limit).
- Implemented types
Constructors
Properties
Methods
-
isEnabled(
ProjectContext context) → bool -
Determines if the scanner should run based on the given ProjectContext.
This can be overridden to disable a scanner globally or conditionally.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
scan(
ProjectContext context) → Future< ScannerResult> -
Executes the scan and returns a ScannerResult.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited