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

Publicado em: 22 Outubro 2021
no canal de: 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


Nesta página do site você pode assistir ao vídeo on-line Flutter Freezed Code Generation - Data Classes, Unions/Sealed Classes, & Bloc Tutorial duração online em boa qualidade , que foi baixado pelo usuário Marcus Ng 22 Outubro 2021, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 42,994 vezes e gostou 1.1 mil espectadores. Boa visualização!