manager 0.1.5 manager: ^0.1.5 copied to clipboard
A new state management architecture pattern.
0.1.5 #
CastedValueCallback<T>
will be required for the following type check static methods:
ManagerObserver.doIfManagerIs
ManagerObserver.doIfValueIs
ManagerObserver.doIfManagerIs
ManagerObserver.doIfEventIs
ManagerObserver.doIfTaskIs
0.1.2 #
BREAKING CHANGES
:
- In order to make the observers be able to bind to multiple managers, the type parameters of
ManagerObserver
andObservableManagerMixin
. Instead, the following static semantic methods were added to do a type check.ManagerObserver.doIfManagerIs
ManagerObserver.doIfValueIs
ManagerObserver.doOnStateMutatedIfValuesAre
ManagerObserver.doIfManagerIs
ManagerObserver.doIfEventIs
ManagerObserver.doIfTaskIs
ObservableManagerMixin
's.addObserver
and.removeObserver
methods are now public.
0.1.0 #
BREAKING CHANGES
:
ObservableManagerMixin
'sinitialize
was renamed toinitializeObservers
Manager
'sonStateChanged
getter was reformed to a method acceptingwithLatest
optional argument.
Other changes
:
Manager
'son
method has now an optional parameterwithLatest
using which will returnBehaviourSubject
's value stream to get the latest event emitted when listening to it.
0.0.7 #
Fixed an issue of mixins overriding methods of each other without calling super
0.0.6 #
- Added new structures:
ObservableManagerMixin
andManagerObserver
- Added new tests for the structures in
manager_observer_test
- Regrouped the library structure
0.0.5 #
Added following methods to RecordTaskEventsMixin
:
recordEvent
deleteRecordEvent
eventTable
(exposing it asprotected
member)
Behaviour of instances extending RecordTaskEventsMixin
was overriden:
Record of the event being killed - will be immediately removed from _eventTable
0.0.4 #
Fixed repository link in pubscpec.yaml
0.0.3 #
Added RecordTaskEventsMixin
to enable recording of events.
0.0.2+1 #
Downgraded async
dependency to be compatible with flutter
0.0.2 #
- Added
onUpdate
stream to track both events firing and the state changes.
0.0.1 #
- Initial version.