CachedData class

Represents the data returned from cache.

Available Extensions
Annotations
  • @CopyWith()

Constructors

CachedData({Object? value, required CacheLoc location, required DateTime updatedAt, required DateTime lastUsedAt, required int useCount})
Create a new instance of CachedData.

Properties

hashCode int
The hash code for this object.
no setterinherited
lastUsedAt DateTime
The datatime of the cache is last used.
final
location CacheLoc
The location of the cache is retrieved.
final
props List<Object?>
The list of properties that will be used to determine whether two instances are equal.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stringify bool
If set to true, the toString method will be overridden to output this instance's props.
no setter
updatedAt DateTime
The datetime of the cache is updated.
final
useCount int
The cache use count.
final
value Object?
The cached data value.
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