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