CacheResult<T> class

Result of a cache operation with metadata.

Constructors

CacheResult.new({required T data, required bool fromCache, Duration? cacheAge, DateTime? cachedAt})
const

Properties

cacheAge Duration?
Age of the cached data.
final
cachedAt DateTime?
Timestamp when the data was cached.
final
data → T
The data retrieved from cache.
final
fromCache bool
Whether the data came from cache.
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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