Skip to content

Conversation

@jerel
Copy link
Contributor

@jerel jerel commented Nov 6, 2025

Summary

In a project we have a need to generate sealed classes in Dart but fall back to abstract classes in some cases. This PR adds the ability to configure enum generation by creating an EnumConfig struct and optionally specifying a map of types which should use the specified behavior.

I don't know if this fits into your vision for this project but I figured I'd open this PR and see what you thought as it would be nice to keep parity with this main project.

Test Plan

The default is to generate all code exactly as it has been in the past. The new sealed behavior has to be opted in to.

@jerel jerel requested a review from ma2bd as a code owner November 6, 2025 00:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant