registerObserver method Null safety

void registerObserver(
  1. PropertyChangedCallback observer
)

Register a property changes observer.

Implementation

void registerObserver(PropertyChangedCallback observer) {
  _observers.add(observer);
}