put method
void
put()
Updates the state and notifies listeners.
Notifies all registered listeners and logs the update event.
Implementation
void put() {
for (var listener in _listeners) {
listener();
} // Notify all listeners
infoLog("State updated successfully.");
}