RequestInfo.values constructor

RequestInfo.values({
  1. String url = '',
  2. String? method,
  3. Options? options,
  4. String? cacheKey,
  5. bool? isFormData,
  6. bool publicMethod = false,
  7. dynamic data,
  8. String? contentType,
  9. CancelToken? cancelToken,
  10. Function? onStart,
  11. dynamic onError(
    1. HttpData httpData
    )?,
  12. Function? onFinish,
  13. ValidateResponse? validateResponse,
  14. String? successCode,
  15. String? codeKey,
  16. String? msgKey,
  17. String? dataKey,
  18. ProgressCallback? onReceiveProgress,
  19. ProgressCallback? onSendProgress,
  20. dynamic handleRes(
    1. dynamic map
    )?,
  21. dynamic onSuccess(
    1. HttpData httpData
    )?,
  22. HttpError validateError(
    1. dynamic data
    )?,
  23. bool useLoadMore = false,
  24. bool checkDataEmpty = true,
})

Implementation

RequestInfo.values({
  this.url = '',
  this.method,
  this.options,
  this.cacheKey,
  this.isFormData,
  this.publicMethod = false,
  this.data,
  this.contentType,
  this.cancelToken,
  this.onStart,
  this.onError,
  this.onFinish,
  this.validateResponse,
  this.successCode,
  this.codeKey,
  this.msgKey,
  this.dataKey,
  this.onReceiveProgress,
  this.onSendProgress,
  this.handleRes,
  this.onSuccess,
  this.validateError,
  this.useLoadMore = false,
  this.checkDataEmpty = true
});