u/Elixanein r/FlutterDev β’ Recommends
Super Enum πͺ Dart & Flutter Tutorial β Store Custom Data
114K subscribers β’ 36 videos on Hallway
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/resocoderWhat 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
u/xsahil03xin r/FlutterDev β’ Recommends
On βSuper Enum v0.4.1 released.β