writeResponse method
Writes body of the HTTP response from body property
Different ValueTypes
are differently when they are written
to the response.
Implementation
@override
void writeResponse(HttpResponse resp) {
writeAllButBody(resp);
if (body != null) {
resp.write(body!);
}
}