TTLParser class
Utility class for parsing and validating TTL (Time To Live) dates
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
filterExpired<
T> (List< T> items, String getTTL(T)) → List<T> - Filter out expired items from a list
-
isExpired(
String? ttlString) → bool - Check if TTL date is expired (in the past)
-
parseTTL(
String? ttlString) → DateTime? - Parse TTL string to DateTime Supports formats: "2026-01-12T23:59:59" or "2026-01-12"