DioResponseType constructor
const
DioResponseType(
- 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 streamResponseType.plain- Return as plain textResponseType.bytes- Return as bytes
Implementation
const DioResponseType(this.responseType);