3 ms·
https://codewithandrea.com/tips/enums-with-members-dart-2.17 https://codewithandrea.com/tips/enums-with-members-dart-2.17
by munificent 4y ago
https://codewithandrea.com/tips/enums-with-members-dart-2.17 https://codewithandrea.com/tips/enums-with-members-dart-2.17
- newZWhoDis 4y agoSee 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.
- munificent 4y agoNo, you can add as many fields of whatever types you want to an enum in Dart.