AdapterBaseOptions constructor

const AdapterBaseOptions({
  1. Duration? connectTimeout,
  2. Duration? receiveTimeout,
  3. Duration? sendTimeout,
  4. Map<String, dynamic> headers = const {},
  5. String? contentType,
  6. ResponseType responseType = ResponseType.json,
  7. bool followRedirects = true,
  8. int maxRedirects = 5,
  9. bool validateStatus(
    1. int statusCode
    )?,
  10. bool receiveDataWhenStatusError = true,
  11. Map<String, dynamic> extra = const {},
  12. bool persistentConnection = true,
})

Implementation

const AdapterBaseOptions({
  this.connectTimeout,
  this.receiveTimeout,
  this.sendTimeout,
  this.headers = const {},
  this.contentType,
  this.responseType = ResponseType.json,
  this.followRedirects = true,
  this.maxRedirects = 5,
  this.validateStatus,
  this.receiveDataWhenStatusError = true,
  this.extra = const {},
  this.persistentConnection = true
});