RequestParams constructor

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