isExpired static method
Check if TTL date is expired (in the past)
Implementation
static bool isExpired(String? ttlString) {
final ttlDate = parseTTL(ttlString);
if (ttlDate == null) {
return false; // No TTL means not expired
}
return ttlDate.isBefore(DateTime.now());
}