DateCodec class Null safety

Encodes and decodes dates according to MIME requirements.

Constructors

DateCodec()

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent 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

decodeDate(String? dateText) DateTime?
Decodes the given MIME dateText to a DateTime
encodeDate(DateTime dateTime) String
Encodes the given dateTime to a valid MIME date representation
encodeSearchDate(DateTime dateTime) String
Encodes only day-month-year of the given dateTime, e.g. "1-MAR-2021"