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. @JsonKey(includeToJson: false, includeFromJson: false, fromJson: null, toJson: null) RequestEncoder? requestEncoder,
  10. @JsonKey(includeToJson: false, includeFromJson: false, fromJson: null, toJson: null) DioStart? dioStart,
  11. bool? returnIsString,
  12. @JsonKey(includeToJson: false, includeFromJson: false, fromJson: null, toJson: null) @Default(false) bool isFullUrl,
  13. @JsonKey(includeToJson: false, includeFromJson: false, fromJson: null, toJson: null) InterceptorCall? interceptorCall,
  14. @JsonKey(includeToJson: false, includeFromJson: false, fromJson: null, toJson: null) UrlParseFormat? urlParseFormat,
  15. @JsonKey(includeToJson: false, includeFromJson: false, fromJson: null, toJson: null) ResponseResultCallback? responseResultCallback,
  16. Map<String, dynamic>? extra,
  17. @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;