Open andhieka opened 4 years ago
This PR would partially fulfil the request in #42 as this adds copyWithUpdate
.
Caveat This PR does not change behaviour when user uses "private fields" mode
Demo You can try it on my github pages
Example usage of copy constructor See in DartPad
good job can i use on my project?
Create copy constructor to help users who want to use generated models as immutable value types (copying object instead of directly modifying variables).