-
Notifications
You must be signed in to change notification settings - Fork 30
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
Mismatch field type error in latest version 5.0.1
#79
Comments
|
I will take a closer look at this today. In fact, I had intended to throw an error in the opposite scenario - when the field is nullable, but the constructor parameter is non-nullable. Looks like an unintended side effect. 👍 |
Thanks for the quick fix! |
Describe the issue
The following code used to work fine with
5.0.0
:But seems like something has changed in
5.0.1
and now the build runner fails with the error:I understand the error and I guess I can mark the field as nullable, but the field is not actually nullable as it does get initialised in the constructor.
So my question is, can
copy_with_extension
continue to support the above snippet? Or do I have to update my code?Environment details
Paste the flutter environment detail.
Paste the package version.
To Reproduce
Steps to reproduce the behaviour:
copy_with_extension: 5.0.1
Expected behaviour
Build runner building with
copy_with_extension
should work with the above snippet.Additional context
N/A
The text was updated successfully, but these errors were encountered: