Y
Hacker News
new
|
ask
|
show
|
jobs
by
munificent
1228 days ago
https://codewithandrea.com/tips/enums-with-members-dart-2.17
1 comments
newZWhoDis
1226 days ago
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.
link
munificent
1225 days ago
No, you can add as many fields of whatever types you want to an enum in Dart.
link
I need to add complex objects, sometimes multiple. Swift lets you do this easily.