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

Pubblicato il: 22 ottobre 2021
sul canale di: 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


In questa pagina del sito puoi guardare il video online Flutter Freezed Code Generation - Data Classes, Unions/Sealed Classes, & Bloc Tutorial della durata di online in buona qualità , che l'utente ha caricato Marcus Ng 22 ottobre 2021, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 42,994 volte e gli è piaciuto 1.1 mille spettatori. Buona visione!