BaseOptions constructor

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

Implementation

BaseOptions({
  super.method,
  Duration? connectTimeout,
  super.receiveTimeout,
  super.sendTimeout,
  String baseUrl = '',
  Map<String, dynamic>? queryParameters,
  super.extra,
  super.headers,
  super.preserveHeaderCase = false,
  super.responseType = ResponseType.json,
  super.contentType,
  super.validateStatus,
  super.receiveDataWhenStatusError,
  super.followRedirects,
  super.maxRedirects,
  super.persistentConnection,
  super.requestEncoder,
  super.responseDecoder,
  super.listFormat,
}) {
  this.baseUrl = baseUrl;
  this.queryParameters = queryParameters ?? {};
  this.connectTimeout = connectTimeout;
}