CacheCleaner class

Cleans cache targets safely.

Constructors

CacheCleaner({bool moveToTrash = false, void verboseLogger(String message)?})

Properties

hashCode → int
The hash code for this object.
no setterinherited
moveToTrash → bool
Whether to move to trash instead of deleting directly.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
verboseLogger → void Function(String message)?
Optional verbose logger for progress updates.
final

Methods

cleanGlobalTargets(List<CacheTarget> targets) → Future<CleanResult>
Cleans a list of global cache targets.
cleanProject(ProjectInfo project) → Future<CleanResult>
Cleans cache targets from a project. Returns a CleanResult with deleted paths and errors.
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