CachedData<T> class
Cached data wrapper
Constructors
- CachedData({required T data, DateTime? cachedAt, DateTime? expiresAt, int accessCount = 1, DateTime? lastAccessedAt})
Properties
- accessCount ↔ int
-
getter/setter pair
- cachedAt → DateTime
-
final
- data → T
-
final
- expiresAt → DateTime?
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isExpired → bool
-
no setter
- lastAccessedAt ↔ DateTime
-
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
markAccessed(
) → void -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited