requireInvoke method

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

获取指定 propertyKey 对应异步请求属性的请求发起方法

propertyKey 对应属性必须为 AsyncBindableProperty

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

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

Implementation

void Function() requireInvoke(Object propertyKey,
    {bool resetOnBefore = true}) {
  return getInvoke(propertyKey, resetOnBefore: resetOnBefore)!;
}