isExpired property
bool
get
isExpired
Whether the value has expired based on TTL.
Implementation
bool get isExpired {
if (ttl == null || _loadedAt == null) return false;
return DateTime.now().difference(_loadedAt!) > ttl!;
}