isExpired static method

bool isExpired(
  1. String? ttlString
)

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());
}