ItemCache class

Wrapper object for storing data in Hive.

Annotations
  • @JsonSerializable()
  • @HiveType(typeId: 0)

Constructors

ItemCache({required DateTime lastValidated, required String key, required DateTime expireOn, required dynamic data})

Properties

data → dynamic
data contains what info we stored
final
expireOn DateTime
expireOn field store when ItemCache is going to expire.
final
hashCode int
The hash code for this object.
no setterinherited
key String
key required for resolving Hash Collisions
final
lastValidated DateTime
lastValidated field store when ItemCache was last validated.
getter/setter pair
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