Freezed – Data Class & Union in One Dart Package

? Learn from the written tutorial ??
https://resocoder.com/freezed-tutorial

? Get Flutter news ? and resources:
? http://flutter.education

?‍? Do you write good code? Find out now!
https://resocoder.com/good-code-quiz

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:
https://resocoder.com

Follow me on social media:
https://instagram.com/resocoder
https://www.facebook.com/resocoder
https://twitter.com/resocoder

source