notify method

  1. @protected
void notify()

Implementation

@protected
void notify() {
  if (_targetVersion == _currentVersion) {
    _targetVersion++;
    scheduleMicrotask(() {
      _targetVersion = ++_currentVersion;
      _listeners.toList().forEach((fn) => fn());
    });
  }
}