Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dart: use enhanced enums #8313

Merged
merged 4 commits into from
Nov 18, 2024
Merged

dart: use enhanced enums #8313

merged 4 commits into from
Nov 18, 2024

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 <[email protected]>
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