AnalyzeCommand class
Analyzes Flutter project assets for optimization opportunities.
Scans asset directories defined in pubspec.yaml, analyzes each file for size, dimensions, format efficiency, and detects unused assets.
final command = AnalyzeCommand(fileService, imageService, state);
final result = await command.execute('./my_flutter_project');
Constructors
- AnalyzeCommand(FileService _fileService, ImageService _imageService, AnalysisState _state, [UsageService? usageService])
- Creates an analyze command with required services.
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
-
execute(
String projectPath) → Future< AnalysisResult> -
Executes asset analysis on the given
projectPath. -
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