getHeaderContentDisposition method Null safety

ContentDispositionHeader? getHeaderContentDisposition()

Retrieves the first 'content-disposition' header.

Implementation

ContentDispositionHeader? getHeaderContentDisposition() {
  if (_contentDispositionHeader != null) {
    return _contentDispositionHeader;
  }
  final value = _getLowerCaseHeaderValue('content-disposition');
  if (value == null) {
    return null;
  }
  _contentDispositionHeader = ContentDispositionHeader(value);
  return _contentDispositionHeader;
}