CacheModel constructor

CacheModel({
  1. required DateTime? expirationDateTime,
  2. required dynamic value,
})

Constructor for CacheModel. expirationDateTime is the time when the cached data expires, and value is the actual cached data.

Implementation

CacheModel({
  required this.expirationDateTime,
  required this.value,
});