FutureHookResult class Null safety

状态加手动执行函数

Constructors

FutureHookResult({bool loading = false})
构建

Properties

data ↔ dynamic
返回数据
read / write
error Error?
service 抛出的异常
read / write
hashCode int
The hash code for this object. [...]
read-only, inherited
loading bool
service 是否正在执行
read / write
params ↔ dynamic
当次执行的 service 的参数数组
read / write
refresh ↔ dynamic Function()
使用上一次的 params,重新执行 service
read / write
run ↔ dynamic Function([dynamic params])
手动触发 service 执行,参数会传递给 service
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
inherited

Operators

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