RequestParams class sealed

Available extensions
Annotations
  • @freezed

Constructors

RequestParams.new({@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})
const
factory
RequestParams.fromJson(Map<String, dynamic> json)
factory

Properties

cancelToken → CancelToken?
no setterinherited
contentType String?
no setterinherited
copyWith → $RequestParamsCopyWith<RequestParams>
Create a copy of RequestParams with the given fields replaced by the non-null parameter values.
no setterinherited
data → dynamic
no setterinherited
dataModel DartTypeModel

Available on RequestParams, provided by the RequestParamsex extension

no setter
dioStart DioStart?
no setterinherited
downloadUrl String?
no setterinherited
extra Map<String, dynamic>?
no setterinherited
fullUrl String?
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
headers Map<String, dynamic>
no setterinherited
interceptorCall InterceptorCall?
no setterinherited
loadingText String
no setterinherited
nullParams bool?
no setterinherited
onReceiveProgress → ProgressCallback?
no setterinherited
onSendCallback → ProgressCallback?
no setterinherited
requestEncoder → RequestEncoder?
no setterinherited
responseResultCallback ResponseResultCallback?
no setterinherited
responseType → ResponseType?
no setterinherited
returnIsString bool?
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
savePath File?
no setterinherited
showDefaultLoading bool
no setterinherited
showErrorMsg bool
no setterinherited
urlParseFormat UrlParseFormat?
no setterinherited

Methods

map<TResult extends Object?>(TResult $default(_RequestParams value)) → TResult

Available on RequestParams, provided by the RequestParamsPatterns extension

A switch-like method, using callbacks.
mapOrNull<TResult extends Object?>(TResult? $default(_RequestParams value)?) → TResult?

Available on RequestParams, provided by the RequestParamsPatterns extension

A variant of map that fallback to returning null.
maybeMap<TResult extends Object?>(TResult $default(_RequestParams value)?, {required TResult orElse()}) → TResult

Available on RequestParams, provided by the RequestParamsPatterns extension

A variant of map that fallback to returning orElse.
maybeWhen<TResult extends Object?>(TResult $default(bool showErrorMsg, String loadingText, String? contentType, Map<String, dynamic> headers, bool showDefaultLoading, dynamic data, ResponseType? responseType, bool? nullParams, RequestEncoder? requestEncoder, DioStart? dioStart, bool? returnIsString, String? fullUrl, InterceptorCall? interceptorCall, UrlParseFormat? urlParseFormat, ResponseResultCallback? responseResultCallback, Map<String, dynamic>? extra, CancelToken? cancelToken, ProgressCallback? onSendCallback, ProgressCallback? onReceiveProgress, String? downloadUrl, File? savePath)?, {required TResult orElse()}) → TResult

Available on RequestParams, provided by the RequestParamsPatterns extension

A variant of when that fallback to an orElse callback.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Serializes this RequestParams to a JSON map.
inherited
toString() String
A string representation of this object.
inherited
when<TResult extends Object?>(TResult $default(bool showErrorMsg, String loadingText, String? contentType, Map<String, dynamic> headers, bool showDefaultLoading, dynamic data, ResponseType? responseType, bool? nullParams, RequestEncoder? requestEncoder, DioStart? dioStart, bool? returnIsString, String? fullUrl, InterceptorCall? interceptorCall, UrlParseFormat? urlParseFormat, ResponseResultCallback? responseResultCallback, Map<String, dynamic>? extra, CancelToken? cancelToken, ProgressCallback? onSendCallback, ProgressCallback? onReceiveProgress, String? downloadUrl, File? savePath)) → TResult

Available on RequestParams, provided by the RequestParamsPatterns extension

A switch-like method, using callbacks.
whenOrNull<TResult extends Object?>(TResult? $default(bool showErrorMsg, String loadingText, String? contentType, Map<String, dynamic> headers, bool showDefaultLoading, dynamic data, ResponseType? responseType, bool? nullParams, RequestEncoder? requestEncoder, DioStart? dioStart, bool? returnIsString, String? fullUrl, InterceptorCall? interceptorCall, UrlParseFormat? urlParseFormat, ResponseResultCallback? responseResultCallback, Map<String, dynamic>? extra, CancelToken? cancelToken, ProgressCallback? onSendCallback, ProgressCallback? onReceiveProgress, String? downloadUrl, File? savePath)?) → TResult?

Available on RequestParams, provided by the RequestParamsPatterns extension

A variant of when that fallback to returning null

Operators

operator ==(Object other) bool
The equality operator.
inherited