Skip to content

Conversation

vaind
Copy link
Contributor

@vaind vaind commented May 18, 2024

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.

@github-actions github-actions bot added c++ codegen Involving generating code from schema dart labels May 18, 2024
@vaind vaind changed the title dart: rename enums.fbs dart: use enhanced enums May 19, 2024
@vaind vaind force-pushed the dart/enhanced-enums branch from a6544e6 to 714941e Compare May 31, 2024 12:45
@vaind vaind force-pushed the dart/enhanced-enums branch from 714941e to e68854e Compare September 25, 2024 18:44
@fawdlstty
Copy link

Hello, is there any new information about this pr?

@fawdlstty
Copy link

@aardappel Sorry to tag you out of the blue. Can you promote the merger of PR?

@aardappel
Copy link
Collaborator

This seems a nice improvement :)

@aardappel aardappel enabled auto-merge (squash) November 18, 2024 17:26
@aardappel aardappel merged commit a9df448 into google:master Nov 18, 2024
46 of 47 checks passed
razvanalex pushed a commit to razvanalex/flatbuffers that referenced this pull request Dec 3, 2024
* dart: rename enums.fbs

* feat: use dart enhanced enums

* generate code

---------

Co-authored-by: Wouter van Oortmerssen <aardappel@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c++ codegen Involving generating code from schema dart
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants