Member-only story
The Three Musketeers Of Flutter State Management
Would it be nice if everything in Flutter State Management could be boiled down to Three state management solutions? Let me show you how.
Domain Events, Domain Driven Design
In Domain Driven Design we have domain events, it’s simply implementing domain events in the domain layer and creating a graph. Adam has an article on state graphs:
And there is a demo GitHub repo:
It’s still Domain based events, even though Adam does not use a more complex value-object approach. My points here is that we have a system of monitoring events in the domain layer and UI layer and having the UI transform based on those events.
Let me show you in DDD terms. First, we have some primitive value-object: