form method

void form(
  1. Map<String, String> fields
)

Form-urlencoded fields.

Implementation

void form(Map<String, String> fields) {
  _headers['content-type'] = 'application/x-www-form-urlencoded';
  _body = Uri(queryParameters: fields).query;
}