excute method

dynamic excute()

自动执行事件(请勿调用)

Implementation

excute() {
  // 如果不相等,触发依赖
  dynamic currentValue = _excute();
  if (currentValue != _value) {
    try {
      _handler(_value, currentValue);
      _value = currentValue;
    } catch (e) {
      dispose(); // 销毁无用的依赖
      print('app wrong: RefWatch excute 执行出错.');
      print('存在未清除的watch依赖!请调用dispose方法清除依赖');
    }
  }
}