DioResponseType constructor

const DioResponseType(
  1. ResponseType responseType
)

Creates a new DioResponseType annotation with the specified responseType.

responseType determines how the response data should be processed:

  • ResponseType.json - Parse as JSON (default)
  • ResponseType.stream - Return as stream
  • ResponseType.plain - Return as plain text
  • ResponseType.bytes - Return as bytes

Implementation

const DioResponseType(this.responseType);