isExpired property

bool get isExpired

Whether the entry has exceeded its cacheTime TTL relative to DateTime.now().

Implementation

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