writeContentType method

  1. @override
void writeContentType(
  1. Response response
)
override

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);
}