invoke method

void invoke(
  1. Object propertyKey, {
  2. bool resetOnBefore = true,
})

发起指定 propertyKey 对应的异步请求

propertyKey 对应属性必须为 AsyncBindableProperty 否则空操作

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

调用其返回的方法将发起异步请求

Implementation

void invoke(Object propertyKey, {bool resetOnBefore = true}) =>
    getInvoke(propertyKey, resetOnBefore: resetOnBefore)?.call();