BaseOptions constructor

BaseOptions(
  1. {String method,
  2. int connectTimeout,
  3. int receiveTimeout,
  4. int sendTimeout,
  5. String baseUrl,
  6. Map<String, dynamic> queryParameters,
  7. Map<String, dynamic> extra,
  8. Map<String, dynamic> headers,
  9. ResponseType responseType: ResponseType.json,
  10. String contentType,
  11. ValidateStatus validateStatus,
  12. bool receiveDataWhenStatusError: true,
  13. bool followRedirects: true,
  14. int maxRedirects: 5,
  15. RequestEncoder requestEncoder,
  16. ResponseDecoder responseDecoder}
)

Implementation

BaseOptions({
  String method,
  this.connectTimeout,
  int receiveTimeout,
  int sendTimeout,
  this.baseUrl,
  this.queryParameters,
  Map<String, dynamic> extra,
  Map<String, dynamic> headers,
  ResponseType responseType = ResponseType.json,
  String contentType,
  ValidateStatus validateStatus,
  bool receiveDataWhenStatusError = true,
  bool followRedirects = true,
  int maxRedirects = 5,
  RequestEncoder requestEncoder,
  ResponseDecoder responseDecoder,
}) : super(
        method: method,
        receiveTimeout: receiveTimeout,
        sendTimeout: sendTimeout,
        extra: extra,
        headers: headers,
        responseType: responseType,
        contentType: contentType,
        validateStatus: validateStatus,
        receiveDataWhenStatusError: receiveDataWhenStatusError,
        followRedirects: followRedirects,
        maxRedirects: maxRedirects,
        requestEncoder: requestEncoder,
        responseDecoder: responseDecoder,
      );