ResponseFormatException constructor

ResponseFormatException(
  1. MediaType? contentType,
  2. Encoding? encoding, {
  3. String? body,
  4. Uint8List? bytes,
})

Construct a new instance of ResponseFormatException using information from the body of the response.

Implementation

ResponseFormatException(this.contentType, this.encoding,
    {this.body, this.bytes});