Freezed – Data Class & Union in One Dart Package

? Learn from the written tutorial ??

? Get Flutter news ? and resources:

?‍? Do you write good code? Find out now!

How would you like it if Dart had data classes and sealed classes as we know them from Kotlin? It would be perfect but while these features are being worked on, they’re still in the distant future. Now we have the next best thing though – we’re all about to get freezed with the new package by Rémi Rousselet, the creator of provider.

If you’ve been following Dart’s algebraic data type scene for a while you might be thinking “We have sealed_unions, super_enum, sum_types… Why do we need yet another package?”. (Yes, I did cover all of those packages with tutorials ?) Similarly, if you are an avid follower of the data class scene, built_value, equatable and even certain VS Code extensions may come to mind. So, why again another package?

Go to my website for more information, code examples, and articles:

Follow me on social media: