APIPageableSession<T> class
abstract
- Mixed-in types
-
- APIOptions<
T> - APIDioMixin<
T, APIResponder< T> >
- APIOptions<
Constructors
- APIPageableSession({required APIPageableLoader? loader})
Properties
- config → APIConfig
-
全局配置
no setterinherited
- contentType → String?
-
no setterinherited
- extra → Parameters?
-
no setterinherited
- followRedirects → bool?
-
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- headers → HTTPHeader?
-
请求头 默认 null
no setterinherited
- listFormat → ListFormat?
-
no setterinherited
- loader → APIPageableLoader
-
final
- maxRedirects → int?
-
no setterinherited
- method → HTTPMethod
-
请求方式 默认 post
no setterinherited
- options → Options?
-
请求配置
no setterinherited
- parameters → Parameters
-
请求参数 默认 null
no setteroverride
-
parseJson
→ ParseJsonT<
T> -
json 转换函数
no setterinherited
- path → String
-
请求路径 默认 null
no setterinherited
- persistentConnection → bool?
-
no setterinherited
- prefixPath → String
-
跟随主域名后面的前缀
no setterinherited
- preserveHeaderCase → bool?
-
no setterinherited
- receiveDataWhenStatusError → bool?
-
no setterinherited
- receiveTimeout → Duration?
-
接收超时时间
no setterinherited
- requestEncoder → RequestEncoder?
-
no setterinherited
- responseDecoder → ResponseDecoder?
-
no setterinherited
- responseType → ResponseType?
-
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sendTimeout → Duration?
-
发送超时时间
no setterinherited
- suffixPath → String
-
跟随主域名后面的后缀
no setterinherited
- url → String
-
请求 url, 由 prefixPath、path 和 suffixPath 组成
no setterinherited
- validateStatus → ValidateStatus?
-
no setterinherited
Methods
-
createResponder(
dynamic data) → APIResponder< T> -
inherited
-
decodeJson(
dynamic data) → APIResponder< T> -
inherited
-
fetch(
{bool isCached = true}) → Future< T?> -
根据 responder 自动解析成对应的 model 并返回
inherited
-
fetchList(
{bool isCached = true}) → Future< List< T> ?> -
根据 responder 自动解析成对应的 list model 并返回
inherited
-
fromJson(
dynamic json) → T -
将
json转换为对应的T类型inherited -
load(
{bool isCached = true}) → Future< List< T> ?> -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
refresh(
{bool isCached = true}) → Future< List< T> ?> -
request(
{bool isCached = true}) → Future< APIResponder< T> > -
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited