isExpired property

bool get isExpired

Whether this cache entry has exceeded its cacheTime lifetime and should be evicted.

Implementation

bool get isExpired =>
    DateTime.now().difference(updatedAt) > cacheTime;