Skip to content
0:00 / 0:00

#flutter#dart#freezed

Freezed ❄ – Data Class & Union in One Dart Package

Reso Coder

114K subscribers • 26 videos on Hallway

YouTube
  • Recommended by 3 people: 3 in engineering communities.
  • Presented by Reso Coder
  • May be out of date. The tools, versions or practices it shows have likely moved on.

Intermediate. Assumes working knowledge.

60K views6 years ago3 recommendations

Programming languagesMobile developmentFlutter and React NativeFunctional programming

Reso Coder explains how to use the Freezed package in Dart to generate data classes and union types.

📗 Learn from the written tutorial 👇👇 resocoder.com/freezed-tutorial 📧 Get Flutter news 📰 and resources: 👉 flutter.education 👨‍💻 Do you write good code? Find out now! resocoder.com/good-code-quiz How would you like it if Dart had data classes and sealed classes as we know them from Kotlin? It would be perfect but while these features are being worked on, they're still in the distant future. Now we have the next best thing though - we're all about to get freezed with the new package by Rémi Rousselet, the creator of provider. If you've been following Dart's algebraic data type scene for a while you might be thinking "We have sealed_unions, super_enum, sum_types... Why do we need yet another package?". (Yes, I did cover all of those packages with tutorials 😉) Similarly, if you are an avid follower of the data class scene, built_value, equatable and even certain VS Code extensions may come to mind. So, why again another package? Go to my website for more information, code examples, and articles: ● resocoder.com Follow me on social media: ● instagram.com/resocoder ● facebook.com/resocoder ● twitter.com/resocoder

Why it's here

3 people recommend this

What people say. Recommended as a comprehensive tutorial on using the Freezed package for code generation in Dart.

u/jdixon04in r/FlutterDev • Recommends

✨ Recap: material design's new motion system and the freezed package... Here's the latest and greatest from the Flutter-verse. Enjoy! Don't forget you can always get these recaps delivered straight to your inbox. \_\_\_\_ ## Slick animations made easy 🙌 Our friends on the Flutter team have released a new animations package based on the new Material Motion system. The Motion system is a set of four transition patterns that are "designed to help users navigate and understand an app by reinforcing relationships between UI elements." Basically, it helps you make your app look slick... ⚡ * **Tell me more about this Motion system**...check out this write-up by Jonas Naimark, a Motion desi…

u/boon4376in r/FlutterDev • Recommends

…ive. Sembast has slightly different syntax and approach compared to hive. But there are more querying functions and abilities built in using the finder. Now that I've gotten used to it, and setup, I really like it. **Helpful Docs for anyone transitioning:** - Sembast nosql tutorial - Freezed video tutorial, with json serialization instructions (link to this video (see comments for a minor annotation update) With Hive, I was writing manual toJSON and fromJSON functions to map my data to online databases and export formats. So the fact that this is automated with freezed (or just json_serializable if you're not using freezed) actually makes my life easier. This was also a huge lesson learned, that b…

u/Elixanein r/FlutterDev • Recommends

Freezed ❄ – Data Class & Union in One Dart Package