Releases: pongloongyeat/notification_dispatcher
Releases · pongloongyeat/notification_dispatcher
0.4.0
0.4.0
Breaking
- Removed support for Equatable.
- Removed support for
Future-based callbacks. - Removed
MockNotificationDispatcher removehas been renamed toremoveObserverWithwith theObject observerparameter made positional.
Documentation
- Updated documentation for
removeObserverandremoveObserverWith(previously calledremove).
0.3.2
0.3.2
Fix
- Fix an issue where calling
NotificationDispatcher.postcould return earlier than intended.
Tests
- Added tests for Future callbacks.
0.2.1
Others
- Updated license.
0.2.0
Features
- Added a
NotificationDispatcherEquatableObserverMixinto ensure classes that extend Equatable are able to be differentiated when adding/removing observers. To use, make sure the mixin'sinstanceKeyis part of the class'spropsproperty.
Fixes
- Fixed an issue where notifications could not be differentiated between instances of the same class if its
==operator andhashCodemethod were overriden.
Documentation
- Updated documentation to reflect changes.
Tests
- Added tests for observers that extend Equatable.
Others
- Updated pubspec description.
0.1.0
Features
NotificationDispatcher.postnow sends along aNotificationMessageto the observer.
Fixes
- Fixed an issue where notifications could not be differentiated between instances of the same class.
Documentation
- Added documentation for all
NotificationDispatchermethods.
Workflow
- Added CI to run tests on commit.
- Added some linting options.
0.0.1
Initial pre-release