RequestParams constructor
const
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,
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;