writeContentType method
Writes the content type to the response headers.
This method sets the 'Content-Type' header of the response to the value specified by the contentType property.
Implementation
@override
void writeContentType(Response response) {
response.headers.set('Content-Type', contentType);
}