this post was submitted on 04 Oct 2023
2 points (75.0% liked)
Flutter
621 readers
7 users here now
Flutter and the related logo are trademarks of Google LLC. We are not endorsed by or affiliated with Google LLC
founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Freezed generates sealed classes, not enums.
I’m not sure enhanced enums do what you think they do if you expect freezed to generate anything for them besides what json_serializable generates for regular enums
The whole point of the discussion is that enhanced enums don't do anything in practice.
Instead of writing verbose extensions and functions all over the place you can use enhanced enums. I mean what else are they supposed to do?