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 🙏
Previous | Next |
---|---|
Dart 2.17: Super Initializers | Golden Image Testing with Robot Testing |