Open tolotrasamuel opened 5 months ago
Just came here to write this. I don't really like freezed, so I also solely rely on copy_with_extension
to get my copyWith methods. So yeah, this would be awesome indeed (otherwise, the code is really boilerplate-y with nested stuff)!
Describe the issue
With the freezed package, I was able to able copy the Company model by changing only the name of the assistant director with one single line.
Company company;
To the best of my knowledge, this is not possible with
copy_with_extension
, becausedirector
is a function .It will be great if you could add the same feature parity as freezed since you package focus solely on the copy with extension, people expect it to be at least on par with
freezed
copyWith capabilityEnvironment details
Paste the flutter environment detail.
Paste the package version.
To Reproduce Without any library, the following is cumbersome:
Company company;
Expected behaviour
With the freezed package, I was able to able copy the Company model by changing only the name of the assistant director with one single line.
Company company;
To the best of my knowledge, this is not possible with
copy_with_extension
, becausedirector
is a function .It will be great if you could the same feature parity as freezed since you package focus solely on the copy with extension, people expect it to be at least on par with
freezed
copyWith capabilityAdditional context
For reference, freezed , freezed uses classes on the
company.copyWith.director.
generated code and overrides the call method, instead of a function