observeChange
Called when the state is changed. Might be called with oldValue == newValue
. Will be called after the change is reflected in get. May or may not be called after the internal state of oldValue
has been changed, in which case oldValue
may not have all the same information as it had after the last call (back when it was a newValue
).
Parameters
oldValue
the value before this change
newValue
the value after this change