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

Add immutable_fields global settings #89

Open
Nico04 opened this issue Mar 5, 2024 · 0 comments
Open

Add immutable_fields global settings #89

Nico04 opened this issue Mar 5, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@Nico04
Copy link

Nico04 commented Mar 5, 2024

I have some large classes with a lot of fields, and I need to the copyWith for just one field.
Instead of decorate all my fields with @CopyWithField(immutable: true) but one, it would be very nice to have a global build.yaml setting (and/or a class-level tag) to define that all fields are by default immutable, exept the one annoted with @CopyWithField(immutable: false) ?

@numen31337 numen31337 added the enhancement New feature or request label Mar 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants