yet_another_observer 2.0.0
yet_another_observer: ^2.0.0 copied to clipboard
Need to retrofit some observers to your existing code base? This plugin can help!
[2.0.0] May 27, 2022 #
- Added missing
hasChanged
parameter and fixed default values for observer methods in YAObserverManager and YAObserverStatefulMixin. - Removed the
super.build()
requirement from YAObserverStatefulMixin and replaced it with anupdateObservers()
that can be called from anywhere to update all observers. This makes it possible to update observers for example from within aScopedModel
builder instead of only from outside it (which would defeat its purpose). - Improved documentation about observing non-scalar values.
[1.0.0] May 26, 2022 #
Replaced event.previous with event.history. Updated test and documentation. Formatted the code.
[0.0.1] May 26, 2022 #
Initial release.