textResponse function
Encodes value as a plain-text response.
Implementation
Response textResponse(String value, {int status = 200}) {
return Response(
status,
body: value,
headers: const {'content-type': 'text/plain; charset=utf-8'},
);
}