Flutter Freezed Code Generation - Data Classes, Unions/Sealed Classes, & Bloc Tutorial

Publié le: 22 octobre 2021
sur la chaîne: Marcus Ng
42,994
1.1k

» Flutter courses, writeups, and source code on Launch Club 🧠
https://drp.li/Iq9Bk
https://www.launchclub.io/blog/flutte...

» Flutter Job Board 👋
https://drp.li/T9bLq

Code generation will take your Flutter app development process to the next level. In this video, you'll learn how to use Freezed to generate data classes and unions to greatly reduce the amount of boilerplate code in your apps.

» Resources 📂
Freezed Package: https://pub.dev/packages/freezed
Equatable: https://pub.dev/packages/equatable
Dart Data Class Generator: https://marketplace.visualstudio.com/...

» Remember to like, subscribe, comment, and share this video!🚨
https://www.youtube.com/MarcusNg?sub_...

» Socials📱
GitHub: https://github.com/MarcusNg
Twitter:   / marcuslng  

» Timestamps 🕒
0:00 Flutter Freezed Code Generation Intro
0:24 Normal User Model
0:39 Equatable
0:51 copyWith
1:14 toJson & fromJson
1:24 VSCode Extension - Dart Data Class Generator
1:58 Freezed Package
3:06 Generate Code
3:26 analysis_options.yaml - Exclude .g.dart and .freezed.dart files
3:34 Freezed toJson & fromJson
4:07 Freezed Custom Methods
4:34 Data Model Relationships
5:10 Serialize Nested Lists of Freezed Objects
5:26 Freezed Unions/Sealed Classes
5:30 Flutter Bloc
6:18 Freezed & Bloc
7:13 Pattern Matching with .when
7:32 Thanks for watching 🙏

» Affiliates 🔥
3D Mockups - https://LaunchClub.io/rotato

» Music 🎶
[NCS (   / nocopyrightsounds  )]
Sky High - Elektronomia (  / elektronomia  )
Joakim Karud (   / joakimkarud  )

#Flutter #Freezed #CodeGeneration


Sur cette page du site, vous pouvez voir la vidéo en ligne Flutter Freezed Code Generation - Data Classes, Unions/Sealed Classes, & Bloc Tutorial durée online en bonne qualité , qui a été Téléchargé par l'utilisateur Marcus Ng 22 octobre 2021, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 42,994 fois et il a aimé 1.1 mille téléspectateurs. Bon visionnage!