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,
- @JsonKey(includeToJson: false, includeFromJson: false, fromJson: null, toJson: null) RequestEncoder? requestEncoder,
- @JsonKey(includeToJson: false, includeFromJson: false, fromJson: null, toJson: null) DioStart? dioStart,
- bool? returnIsString,
- @JsonKey(includeToJson: false, includeFromJson: false, fromJson: null, toJson: null) @Default(false) bool isFullUrl,
- @JsonKey(includeToJson: false, includeFromJson: false, fromJson: null, toJson: null) InterceptorCall? interceptorCall,
- @JsonKey(includeToJson: false, includeFromJson: false, fromJson: null, toJson: null) UrlParseFormat? urlParseFormat,
- @JsonKey(includeToJson: false, includeFromJson: false, fromJson: null, toJson: null) ResponseResultCallback? responseResultCallback,
- Map<
String, dynamic> ? extra, - @JsonKey(includeToJson: false, includeFromJson: false, fromJson: null, toJson: null) CancelToken? cancelToken,
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,
@JsonKey(includeToJson: false, includeFromJson: false, fromJson: null, toJson: null)
RequestEncoder? requestEncoder,
@JsonKey(includeToJson: false, includeFromJson: false, fromJson: null, toJson: null) DioStart? dioStart,
bool? returnIsString,
@JsonKey(includeToJson: false, includeFromJson: false, fromJson: null, toJson: null)
@Default(false)
bool isFullUrl,
@JsonKey(includeToJson: false, includeFromJson: false, fromJson: null, toJson: null)
InterceptorCall? interceptorCall,
@JsonKey(includeToJson: false, includeFromJson: false, fromJson: null, toJson: null)
UrlParseFormat? urlParseFormat,
@JsonKey(includeToJson: false, includeFromJson: false, fromJson: null, toJson: null)
ResponseResultCallback? responseResultCallback,
Map<String, dynamic>? extra,
@JsonKey(includeToJson: false, includeFromJson: false, fromJson: null, toJson: null)
CancelToken? cancelToken}) = _RequestParams;