render method

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

Renders the response by writing the content type and the content.

This method first sets the content type of the response to 'text/plain' with UTF-8 charset by calling writeContentType. Then, it writes the content to the response.

  • Parameter response: The Response object where the content will be written.

Implementation

@override
void render(Response response) {
  writeContentType(response);
  response.write(content);
}