CrashSafeImageCacheConfig class

Cache configuration for CrashSafeImage

Constructors

CrashSafeImageCacheConfig({int maxNrOfCacheObjects = 200, Duration stalePeriod = const Duration(days: 30), String? repoKey})
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
maxNrOfCacheObjects → int
Maximum number of cached objects (default: 200)
final
repoKey → String?
Repository name for cache storage
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
stalePeriod → Duration
Maximum cache duration (default: 30 days)
final

Methods

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

Constants

aggressive → const CrashSafeImageCacheConfig
Aggressive caching (more items, longer duration)
conservative → const CrashSafeImageCacheConfig
Conservative caching (fewer items, shorter duration)
defaultConfig → const CrashSafeImageCacheConfig
Default cache configuration
minimal → const CrashSafeImageCacheConfig
Minimal caching (very limited cache)