text method

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

Generates a plain text response.

Implementation

Response text(String content, {int status = 200}) {
  return Response(body: content, statusCode: status);
}