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 ability to define default values #7

Open
jankuss opened this issue Apr 3, 2024 · 2 comments
Open

Add ability to define default values #7

jankuss opened this issue Apr 3, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@jankuss
Copy link
Owner

jankuss commented Apr 3, 2024

Right now, it is not possible to define default values for classes. This is due to dart not allowing default values on redirecting constructors.

We should support this, possibly using the same approach as freezed by using a special annotation (https://pub.dev/packages/freezed#default-values).

@jankuss jankuss added the enhancement New feature or request label Apr 13, 2024
@nivisi
Copy link

nivisi commented Sep 12, 2024

@jankuss hey there! Thanks for an amazing tool. Is this default value feature coming any time soon?

@jankuss
Copy link
Owner Author

jankuss commented Sep 22, 2024

@jankuss hey there! Thanks for an amazing tool. Is this default value feature coming any time soon?

hey, I'm still working on it - unfortunately this is a bit more complex to solve, as we did not have to implement expressions yet.

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