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 :

  1. Re-run the generator.

  2. Update all instances of the modddel with the new order. Example : from FullName(firstName, lastName) to FullName(lastName, firstName).

  3. Update all instances of the ModddelParams with the new order. Example : from FullNameParams(firstName, lastName) to FullNameParams(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.