Param class

请求参数封装,简化请求

Constructors

Param.stream()
Param.url(String _url)

Properties

bodyObject Object?
no setter
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
url String
no setter

Methods

body(Object? data) Param
自定义body 参数 设置非空值后 bodyMap 则不在生效。
bodyMap() Map<String, dynamic>?
formMap() Map<String, dynamic>?
headerMap() Map<String, String>?
merge(Param? param) Param
合并 Param 参数
mergeMap({Map<String, dynamic>? paramMap, ParamType type = ParamType.body}) Param
合并 map参数
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pathMap() Map<String, dynamic>?
queryMap() Map<String, dynamic>?
tie(String key, dynamic value, {ParamType type = ParamType.body}) Param
参数绑定 type为发起网络请求时,参数所在的载体位置。默认为body 参数。
tieBody(String key, dynamic value) Param
tieForm(String key, dynamic value) Param
tieHeader(String key, dynamic value) Param
tiePath(String key, dynamic value) Param
tieQuery(String key, dynamic value) Param
toString() String
A string representation of this object.
inherited

Operators

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