WorkData<T> class
abstract
Constructors
- WorkData()
- WorkData.create()
-
factory
Properties
- errorType → WorkErrorType?
-
异常类型
no setter
- extra ↔ dynamic
-
任务执行生命周期中可以由用户自由赋值并传递的自定义数据
getter/setter pair
- fromCache → bool
-
标记本次任务的结果是否是从本地缓存加载
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- message → String?
-
获取本次请求返回的结果消息(用户接口协议中约定的消息或者根据规则生成的本地信息,并非http响应消息)
no setter
- options → WorkRequestOptions?
-
本次任务请求的全部参数
no setter
- response → HttpResponse?
-
http响应数据
no setter
- restartCount → int
-
当前任务是第几次重启
no setter
- result → T?
-
获取处理完成的最终结果数据(用户接口协议中定义的有效数据转化成的本地类)
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- success → bool
-
本次任务请求是否成功
no setter
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited