CacheTarget class

Represents a cache target that can be cleaned.

Constructors

CacheTarget({required String type, required String path, required int size, bool safeToDelete = true, bool isGlobal = false, bool exists = true})

Properties

exists → bool
Whether this target was actually found and exists.
final
hashCode → int
The hash code for this object.
no setterinherited
isGlobal → bool
Whether this is a global cache (true) or per-project cache (false).
final
path → String
The absolute path to the cache target.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
safeToDelete → bool
Whether this target is safe to delete.
final
size → int
The size of the cache target in bytes.
final
type → String
The type of cache target (e.g., 'build', 'dart_tool', 'pub_cache').
final

Methods

copyWith({String? type, String? path, int? size, bool? safeToDelete, bool? isGlobal, bool? exists}) → CacheTarget
Creates a copy of this CacheTarget with updated fields.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
inherited