notifyPropertyChange<T> method

T notifyPropertyChange<T>(
  1. K field,
  2. T oldValue,
  3. T newValue
)

Implementation

T notifyPropertyChange<T>(
  K field,
  T oldValue,
  T newValue,
) {
  if (hasObservers && oldValue != newValue) {
    notifyChange(
      PropertyChangeRecord<T, K>(
        this,
        field,
        oldValue,
        newValue,
      ),
    );
  }
  return newValue;
}