htmlResponse function

Response htmlResponse(
  1. String content, {
  2. int status = 200,
})

Create an HTML response

Implementation

Response htmlResponse(String content, {int status = 200}) {
  return Response(
    status,
    headers: {
      'Content-Type': 'text/html; charset=utf-8',
    },
    body: content,
  );
}