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