RequestParams constructor

const RequestParams({
  1. @Default.new(true) bool showErrorMsg,
  2. @Default.new("loading...") String loadingText,
  3. String? contentType,
  4. @Default.new({}) Map<String, dynamic> headers,
  5. @Default.new(true) bool showDefaultLoading,
  6. dynamic data,
  7. ResponseType? responseType,
  8. bool? nullParams,
  9. RequestEncoder? requestEncoder,
  10. DioStart? dioStart,
  11. bool? returnIsString,
  12. String? fullUrl,
  13. InterceptorCall? interceptorCall,
  14. UrlParseFormat? urlParseFormat,
  15. ResponseResultCallback? responseResultCallback,
  16. Map<String, dynamic>? extra,
  17. CancelToken? cancelToken,
  18. ProgressCallback? onSendCallback,
  19. ProgressCallback? onReceiveProgress,
  20. String? downloadUrl,
  21. File? savePath,
})

Implementation

const factory RequestParams({
  @Default(true) bool showErrorMsg,
  @Default("loading...") String loadingText,
  String? contentType,
  @Default({}) Map<String, dynamic> headers,
  @Default(true) bool showDefaultLoading,
  @JsonKey(name: 'data', toJson: _dataToJson) dynamic data,
  ResponseType? responseType,
  bool? nullParams,
  @igFreezedJson RequestEncoder? requestEncoder,
  @igFreezedJson DioStart? dioStart,
  bool? returnIsString,
  @igFreezedJson String? fullUrl,
  @igFreezedJson InterceptorCall? interceptorCall,
  @igFreezedJson UrlParseFormat? urlParseFormat,
  @igFreezedJson ResponseResultCallback? responseResultCallback,
  Map<String, dynamic>? extra,
  @igFreezedJson CancelToken? cancelToken,
  @igFreezedJson ProgressCallback? onSendCallback,
  @igFreezedJson ProgressCallback? onReceiveProgress,
  String? downloadUrl,
  @igFreezedJson File? savePath,
}) = _RequestParams;