notifyObjectUpdate method
void
notifyObjectUpdate()
inherited
Notifies listeners that the object inside the pot has been updated.
The pot automatically notifies listeners only about changes to the pot itself (e.g., created, reset). It does not automatically notify listeners when the object it holds changes or when the object's internal state changes.
Call this method when you need to notify listeners about changes that happen within the held object.
Note
This notification affects not only the listeners you add via
Pot.listen, but also the Pottery DevTools extension. For example,
if a pot holds a ValueNotifier, neither changes to the notifier
nor changes in its value are reflected in the extension page unless
you call this method.
Implementation
void notifyObjectUpdate() {
if (_isDisposed) {
throwStateError();
}
PotManager.eventHandler.addEvent(PotEventKind.objectUpdated, pots: [_pot]);
}