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

Veröffentlicht am: 22 Oktober 2021
auf dem Kanal: 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


Auf dieser Seite können Sie das Online-Video Flutter Freezed Code Generation - Data Classes, Unions/Sealed Classes, & Bloc Tutorial mit der Dauer online in guter Qualität ansehen, das der Benutzer Marcus Ng 22 Oktober 2021 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 42,994 Mal angesehen und es wurde von 1.1 tausend den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!