CustomDioOptions constructor

CustomDioOptions({
  1. Map<String, String>? headers,
  2. bool isProductionMode = true,
  3. bool followRedirects = true,
  4. String? errorPath,
  5. required String baseUrl,
  6. HttpClientAdapter? adapter,
  7. List<Interceptor> interceptorsList = const [],
  8. int sendTimeout = 15000,
  9. int receiveTimeout = 15000,
  10. int connectTimeout = 15000,
  11. bool logAllData = false,
})

Implementation

CustomDioOptions({
  this.headers,
  this.isProductionMode = true,
  this.followRedirects = true,
  this.errorPath,
  required this.baseUrl,
  this.adapter,
  this.interceptorsList = const [],
  this.sendTimeout = 15000,
  this.receiveTimeout = 15000,
  this.connectTimeout = 15000,
  this.logAllData = false,
});