setHeaders method
Sets the headers of the response. Default is text/html with UTF-8 encoding.
Implementation
void setHeaders(HttpHeaders headers) {
headers.contentType = ContentType('text', 'html', charset: 'utf-8');
}
Sets the headers of the response. Default is text/html with UTF-8 encoding.
void setHeaders(HttpHeaders headers) {
headers.contentType = ContentType('text', 'html', charset: 'utf-8');
}