contentType property

String? contentType
inherited

Implementation

String? get contentType => _headers[Headers.contentTypeHeader] as String?;
void contentType=(String? contentType)
inherited

Implementation

set contentType(String? contentType) {
  final newContentType = contentType?.trim();
  _defaultContentType = newContentType;
  if (newContentType != null) {
    _headers[Headers.contentTypeHeader] = newContentType;
  } else {
    _headers.remove(Headers.contentTypeHeader);
  }
}