Learning To Love Immutable Models In Flutter Reactive App Arch
Immutable Models Without Headaches
It's a bit of messed up mess in the Flutter SDK, we have Flux dispatcher that can only accept mutable models called Change Notifiers and other notifiers only accept immutable models. Yes, ChangeNotifier registers void callbacks just like facebook's Flux app architecture.
But, to be blunt honest despite Facebook's choice in mutable models for Flux; to get predictable state we need to use immutable models especially for reactive app architecture. Let me show you the easiest way to create immutable models for flutter app development.
Keep reading with a 7-day free trial
Subscribe to Fred’s Flutter Newsletter to keep reading this post and get 7 days of free access to the full post archives.