isExpired property

bool get isExpired

Checks if the cache item has expired.

Returns true if the current time is after the _expiryTime, indicating that the item has expired.

Implementation

bool get isExpired => DateTime.now().isAfter(_expiryTime);