Data classes, cloning, and (de)serialization with Freezed in Dart and/or Flutter
by Tyler Codes youtube.com
41 min 996 views
Let’s take a deep dive into the world of freezed, a powerful data class/serialization generator. We’ll cover the most common use cases I use in my daily app development. If you like this video, comment to request a follow-up video in which we can discuss generics and other advanced topics. Chapters 00:00 - What is Freezed? 01:24 - Sandbox Walkthrough 05:21 - Installing Dependencies 06:32 - Initial Car Model 10:05 - Generate (build) Code 12:52 - Serializing Data 14:21 - Running Our Code 15:25 - Printing Details 17:19 - Booleans & Nullable Data 19:40 - Defaults 21:15 - JsonKey(name: ...) 22:54 - Analysis Options for Annotation 24:32 - Enums with JsonKey(toJson/fromJson) 30:32 - Tyler makes a Typo 32:10 - JsonKey(name: ...) again 33:38: - Custom Getters 35:07: - Clientside Properties 36:42 - copyWith(...) 38:10 - copyWith(...) Utility Methods 40:24 - Closing Remarks & What's Next The Code: https://github.com/tylersavery/freezed-guide
Topics Code generation
More like this
Video 23 minFlutter State Management: Going from setState to Freezed & StateNotifier with Provider
by
Andrea Bizzotto
, on Flutter Pro
Andrea Bizzotto
@andreabizzotto 🇬🇧 United Kingdom
Available for hire
Andrea Bizzotto has extensive experience in mobile app development, having built complex apps for various clients and as an independent developer. He is passion...
View Andrea on Flutter ProMixing UI and logic inside Flutter widgets is bad. Here's how to refactor a simple app for better separation of concerns, immutability, and type safety using Freezed & State Notifier. Written tutorial...
Watch on YouTube
Video 4 minFlutter Code Generation with Freezed - Data Classes & Unions/Sealed Classes
by HeyFlutter․com
How to use Freezed code generation to streamline your Flutter app development process and eliminate repetitive boilerplate code. With Freezed, you can effortlessly generate data classes and unions, en...
Watch on YouTube- Video 2 min
Sealed vs Abstract Classes in Flutter - der Unterschied ist simpel aber wichtig 🎯 Sealed Class ist
by RoboCitrus
Sealed vs Abstract Classes in Flutter - der Unterschied ist simpel aber wichtig 🎯 Sealed Class ist wie ein VIP-Club: Nur Klassen aus derselben Library dürfen erweitern. Die Liste ist fix und bekannt....
Watch on YouTube
Article 1 min readNetwork State Handling like Kotlin Sealed classes | Flutter
by
Ashish Rawat
, on Flutter Pro
Ashish Rawat
@ashishrawat2911 🇮🇳 India
Available for hire
I'm a passionate and forward-thinking mobile application developer who has experience of building, integrating, testing, and supporting mobile applications for...
View Ashish on Flutter ProHow you can manage the state of the network just like kotlin sealed classes.
Read on medium.flutterdevs.com