google / flatbuffers

FlatBuffers: Memory Efficient Serialization Library
https://flatbuffers.dev/
Apache License 2.0
22.52k stars 3.19k forks source link

dart: use enhanced enums #8313

Open vaind opened 1 month ago

vaind commented 1 month ago

Dart has had enhanced enums for a few years so we can now use it instead of our hacky class with static fields. User code should be mostly unaffected, other than using the defaullt toString() now (closes #8260) and the change in .values type. Both now default to standard dart enum behavior.