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?

#dart #flutter #developer

Freezed ❄ – Data Class & Union in One Dart Package
9.55 GEEK