afterUpdate method
Called immediately after a value has been updated.
This method can be used to perform actions or side effects after a state change has occurred. It is called after the internal state has been modified but before any notifications are sent to listeners.
Parameters:
oldValue: The previous value before the updatenewValue: The new current value after the update
Implementation
@override
void afterUpdate(T oldValue, T newValue) {
print("After update: $oldValue -> $newValue");
}