Hacker Newsnew | past | comments | ask | show | jobs | submitlogin



See my sibling comment. That appears to only work with basic types like strings/ints?

I need to add complex objects, sometimes multiple. Swift lets you do this easily.


No, you can add as many fields of whatever types you want to an enum in Dart.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: