getHeaderValue method Null safety

String? getHeaderValue(
  1. String name
)

Retrieves the raw value of the first matching header.

Some headers may contain encoded values such as '=?utf-8?B?

Implementation

String? getHeaderValue(String name) {
  return _getLowerCaseHeaderValue(name.toLowerCase());
}