notifyPropertyChangedListeners method

void notifyPropertyChangedListeners(
  1. String value
)

Call all the registered listeners.

Call this method whenever the object changes, to notify any clients the object may have. Listeners that are added during this iteration will not be visited. Listeners that are removed during this iteration will not be visited after they are removed.

This method must not be called after dispose has been called.

Surprising behavior can result when reentrantly removing a listener (i.e. in response to a notification) that has been registered multiple times. See the discussion at removePropertyChangedListener.

Implementation

void notifyPropertyChangedListeners(String value) {
  if (_listeners == null) {
    return;
  }

  for (final DateRangePickerValueChangedCallback listener in _listeners!) {
    listener.call(value);
  }
}