text method

void text(
  1. String body
)

Plain text body.

Implementation

void text(String body) {
  _headers['content-type'] = 'text/plain; charset=utf-8';
  _body = body;
}