You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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;
Company newCompany = company.copyWith.director.assistant(name: 'John Smith');
To the best of my knowledge, this is not possible with copy_with_extension , because director 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 capability
Environment details
Paste the flutter environment detail.
flutter doctor
flutter --version
3.19.3
Paste the package version.
dependencies:
copy_with_extension: 5.0.4
To Reproduce
Without any library, the following is cumbersome:
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;
Company newCompany = company.copyWith.director.assistant(name: 'John Smith');
To the best of my knowledge, this is not possible with copy_with_extension , because director 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 capability
Additional context
For reference, freezed , freezed uses classes on thecompany.copyWith.director. generated code and overrides the call method, instead of a function
The text was updated successfully, but these errors were encountered:
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 functionThe text was updated successfully, but these errors were encountered: