BaseUploadApi<T> class
abstract
- Inheritance
-
- Object
- HandleLoading
- BaseApi<
T> - BaseUploadApi
Constructors
Properties
- canShowLoading ↔ bool
-
getter/setter pairinherited
- canShowToast ↔ bool
-
getter/setter pairinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
-
headers
↔ Map<
String, dynamic> ? -
request header
getter/setter pairinherited
- isDebug ↔ bool
-
getter/setter pairinherited
- isEncrypt ↔ bool
-
getter/setter pairinherited
- loadingMsg ↔ String
-
getter/setter pairinherited
- opt ↔ Options
-
请求配置
getter/setter pairinherited
- param ↔ dynamic
-
request body for post/put/...
getter/setter pairinherited
- path ↔ String
-
request path
getter/setter pairinherited
-
queryParameters
↔ Map<
String, dynamic> ? -
request param for get
getter/setter pairinherited
-
result
↔ BaseModel<
T> -
BaseModel witch is tramsfrom by response data
getter/setter pairinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
serializer
↔ TransformJson<
T> ? -
根据 BaseModel.result 内省结果, 完成相应的模型转换
getter/setter pairinherited
Methods
-
custom(
) → Future< Response> -
inherited
-
decryptedAes(
dynamic data) → dynamic -
inherited
-
dimiss(
) → void -
inherited
-
dispatch(
) → Future< BaseModel< T> > -
约定: dispatch().then 代表 网络&业务逻辑 都是成功
inherited
-
encrypt(
RequestOptions options) → dynamic -
inherited
-
networkError(
DioException error) → void -
网络错误处理
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onResponseError(
BaseModel res) → void -
服务端返回错误
inherited
-
requestBaseUrl(
) → String -
请求地址
inherited
-
requestHeader(
) → Map< String, dynamic> -
请求头
inherited
-
serializerJson(
) → void -
模型解析
inherited
-
showLoading(
) → void -
inherited
-
showToast(
{String msg = '加载失败'}) → void -
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
transformModelFromResponseData<
T> (Map responseData) → BaseModel< T> -
解析请求结果
inherited
-
upload(
{required List< String> paths}) → Future<Response> -
uploadAsync(
{required List< String> paths}) → Future<Response>
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited