Fred’s Flutter Newsletter

Fred’s Flutter Newsletter

Learning To Love Immutable Models In Flutter Reactive App Arch

Immutable Models Without Headaches

Fred Grott's avatar
Fred Grott
Sep 05, 2024
∙ Paid
1
Share

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.

Share

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.

Already a paid subscriber? Sign in
© 2025 Fred Grott
Privacy ∙ Terms ∙ Collection notice
Start writingGet the app
Substack is the home for great culture