Freezed ❄ – Data Class & Union in One Dart Package
57.9 هزار بار بازدید -
4 سال پیش
-
📗 Learn from the written
📗 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:
● Instagram: resocoder
● Facebook: resocoder
● Twitter: resocoder
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:
● Instagram: resocoder
● Facebook: resocoder
● Twitter: resocoder
4 سال پیش
در تاریخ 1398/11/22 منتشر شده
است.
57,976
بـار بازدید شده