unregisterObserver method Null safety

void unregisterObserver(
  1. PropertyChangedCallback observer
)

Unregister a property changes observer.

Implementation

void unregisterObserver(PropertyChangedCallback observer) {
  _observers.remove(observer);
}