Skip to content
0:00 / 0:00

#flutter#dart#super_enum

Super Enum πŸ’ͺ Dart & Flutter Tutorial – Store Custom Data

Reso Coder

114K subscribers β€’ 36 videos on Hallway

YouTube
  • Recommended by 2 people: 2 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.

12K views6 years ago2 recommendations

Programming languagesMobile developmentFlutter and React NativeLanguage design and type systems

Reso Coder demonstrates how to use the super_enum package to bring sealed classes and custom data enums to Dart.

πŸ“— Learn from the written tutorial πŸ‘‡πŸ‘‡ resocoder.com/super-enum 🎯 The biggest Flutter conference in Europe: fluttereurope.dev πŸ“§ Get Flutter news πŸ“° and resources: πŸ‘‰ flutter.education πŸ‘¨β€πŸ’» Do you write good code? Find out now! resocoder.com/good-code-quiz Enumerated types in Dart have always been not so useful, compared to other languages. You cannot store additional data in them and using the regular switch statement is a pain. However, when you use a package called super_enum, you can bring a bit of the enum glory to Dart over from Kotlin. In this tutorial, you're going to learn about super_enum in Flutter by building states and events for a BLoC used for displaying weather forecast. It's OK if you're not at home with BLoC - we're not going to touch it much. Of course, you can use this package in any Dart project and for any occasion. 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

2 people recommend this

What people say. Recommended as a showcase of algebraic data types and sealed classes in Dart before they were natively supported.

u/Elixanein r/FlutterDev β€’ Recommends

Super Enum πŸ’ͺ Dart & Flutter Tutorial – Store Custom Data

u/xsahil03xin r/FlutterDev β€’ Recommends

On β€œSuper Enum v0.4.1 released.”

You can read a little bit about ADT's and Sealed classes. It's pretty similar to them. Btw here is a video tutorial from @resocoder showcasing one of it's usecase link to this video