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. dynamic data,
  7. ResponseType? responseType,
  8. bool? nullParams,
  9. RequestEncoder? requestEncoder,
  10. DioStart? dioStart,
  11. bool? returnIsString,
  12. @Default(false) bool isFullUrl,
  13. InterceptorCall? interceptorCall,
  14. UrlParseFormat? urlParseFormat,
  15. ResponseResultCallback? responseResultCallback,
})

Implementation

const factory RequestParams(
    {@Default(true) bool showErrorMsg,
    @Default("loading...") String loadingText,
    String? contentType,
    @Default({}) Map<String, dynamic> headers,
    @Default(true) bool showDefaultLoading,
    dynamic data,
    ResponseType? responseType,
    bool? nullParams,
    RequestEncoder? requestEncoder,
    DioStart? dioStart,
    bool? returnIsString,
    @Default(false) bool isFullUrl,
    InterceptorCall? interceptorCall,
    UrlParseFormat? urlParseFormat, ResponseResultCallback? responseResultCallback
    }) = _RequestParams;