CleanCommand class
Command to clean build artifacts and caches from all packages in a Maloc project.
This command removes:
build/directories.dart_tool/directories- Platform-specific build artifacts (Android, iOS, macOS, Linux, Windows, Web)
- Generated plugin files
- Lock files
Similar to running flutter clean but for the entire monorepo structure.
Constructors
- CleanCommand(String? targetPath)
-
Creates a new CleanCommand with optional
targetPath.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- targetPath → String?
-
The target directory path. If null, uses current directory.
final
Methods
-
execute(
) → Future< void> - Executes the clean command, removing build artifacts from all packages.
-
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