link method

(void Function()?) link(
  1. Object propertyKey, {
  2. bool resetOnBefore = true,
})

获取指定 propertyKey 对应异步请求发起链接

resetOnBefore 指定发起请求之前是否重置属性值 当其值为 true 时, 发起请求之前属性值将先被重置为 AsyncSnapshot<TValue>.nothing()

其实质为 getInvoke 的快捷操作

Implementation

void Function()? link(Object propertyKey, {bool resetOnBefore = true}) =>
    getInvoke(propertyKey, resetOnBefore: resetOnBefore);