isExpired property
bool
get
isExpired
Checks if the cached preview has expired
Implementation
bool get isExpired => DateTime.now().difference(cachedAt) > ttl;
Checks if the cached preview has expired
bool get isExpired => DateTime.now().difference(cachedAt) > ttl;