Skip to content

Latest commit

 

History

History
41 lines (23 loc) · 1.03 KB

File metadata and controls

41 lines (23 loc) · 1.03 KB

Dart 2.17: Enhanced Enums with Members

Did you know?

Since Dart 2.17, you can declare enums with members. 🚀

See below for another example. 👇


What else can you do with this?

  • Define multiple properties
  • Add named or positional arguments to the constructor (as long as it's a const constructor)
  • Define custom methods and getters


Want more Flutter tips like this?

Then just follow me: @biz84

Happy coding!


Found this useful? Show some love and share the original tweet 🙏

Also published on codewithandrea.com 👇


Previous Next
Dart 2.17: Super Initializers Golden Image Testing with Robot Testing