writeContentType method
Sets the content type of the response to 'text/html; charset=utf-8'.
This method is called before rendering the content to ensure that the response has the correct content type for HTML.
The response parameter is the response object where the content type will be set.
Implementation
@override
void writeContentType(Response response) {
response.headers.set('Content-Type', 'text/html; charset=utf-8');
}