decodeHeaderDateValue method Null safety

DateTime? decodeHeaderDateValue(
  1. String name
)

Decodes the a date value of the first matching header

Implementation

DateTime? decodeHeaderDateValue(String name) {
  return DateCodec.decodeDate(getHeaderValue(name));
}