Response.fromString constructor

Response.fromString(
  1. int status,
  2. String statusText,
  3. Map<String, String> headers,
  4. String? bodyString,
)

Implementation

Response.fromString(int status, String statusText,
    Map<String, String> headers, String? bodyString)
    : super(status, statusText, headers) {
  _body = HttpBody.fromString(contentType, bodyString,
      fallbackEncoding: encoding);
}