ContentTypeHeader.from constructor
ContentTypeHeader.from(})
Creates a content type header from the given mediaType.
Optionally specify the used charset, boundary and
isFlowedFormat values.
Implementation
ContentTypeHeader.from(
this.mediaType, {
String? charset,
this.boundary,
this.isFlowedFormat,
}) : super(mediaType.text) {
this.charset = charset?.toLowerCase();
}