Options constructor

Options({
  1. String? method,
  2. Duration? sendTimeout,
  3. Duration? receiveTimeout,
  4. Map<String, dynamic>? extra,
  5. Map<String, dynamic>? headers,
  6. bool? preserveHeaderCase,
  7. ResponseType? responseType,
  8. String? contentType,
  9. ValidateStatus? validateStatus,
  10. bool? receiveDataWhenStatusError,
  11. bool? followRedirects,
  12. int? maxRedirects,
  13. bool? persistentConnection,
  14. RequestEncoder? requestEncoder,
  15. ResponseDecoder? responseDecoder,
  16. ListFormat? listFormat,
})

Implementation

Options({
  this.method,
  Duration? sendTimeout,
  Duration? receiveTimeout,
  this.extra,
  this.headers,
  this.preserveHeaderCase,
  this.responseType,
  this.contentType,
  this.validateStatus,
  this.receiveDataWhenStatusError,
  this.followRedirects,
  this.maxRedirects,
  this.persistentConnection,
  this.requestEncoder,
  this.responseDecoder,
  this.listFormat,
})  : assert(receiveTimeout == null || !receiveTimeout.isNegative),
      _receiveTimeout = receiveTimeout,
      assert(sendTimeout == null || !sendTimeout.isNegative),
      _sendTimeout = sendTimeout;