Re-running the generator
You should re-run the generator each time you make a change to your modddel class.
If you change the order of the positional parameters inside a factory constructor, you should imperatively :
Re-run the generator.
Update all instances of the modddel with the new order. Example : from
FullName(firstName, lastName)
toFullName(lastName, firstName)
.Update all instances of the ModddelParams with the new order. Example : from
FullNameParams(firstName, lastName)
toFullNameParams(lastName, firstName)
.
This is to avoid any kind of ordering problem, especially if the positional parameters which order was changed have compatible types so there won't be any compile-time errors to warn you.