writeContentType method
Sets the content type of the response.
This method sets the 'Content-Type' header of the response to the value specified by the contentType property.
- Parameter response: The Response object whose headers will be modified.
Implementation
@override
void writeContentType(Response response) {
response.headers.set('Content-Type', contentType);
}