notify method

  1. @override
void notify(
  1. T in_value
)
override

Implementation

@override
void notify(T in_value) {
  _value = in_value;
  if (fastFirstRun) {
    // 马上触发
    if (null == _timer) {
      _onListenRun(_value);
      _timer = Timer(time, () {
        _onListenRun(_value);
        _timer = null;
      });
    }
  } else {
    _timer?.cancel();
    _timer = Timer(time, () {
      _onListenRun(_value);
      _timer = null;
    });
  }
}