notifyObservers method

void notifyObservers()
inherited

Notifies all registered observers that the value of this node has changed.

Implementation

void notifyObservers() {
  // Copy the set to prevent ConcurrentModificationError during notification.
  for (final observer in List.of(observers)) {
    observer.notify();
  }
}