ContentTypeHeader constructor Null safety

ContentTypeHeader(
  1. String rawValue
)

Implementation

ContentTypeHeader(String rawValue) : super(rawValue) {
  mediaType = MediaType.fromText(value);
  charset = parameters['charset']?.toLowerCase();
  boundary = parameters['boundary'];
  if (parameters.containsKey('format')) {
    isFlowedFormat = parameters['format']!.toLowerCase() == 'flowed';
  }
}