Built_values looks cool. How would I use that and source_gen with Flutter's hot reload? Could I iterate on my model, trigger a source gen, and see my changes on the device? Does that even make sense?
This has been discussed here as well: https://github.com/flutter/flutter/issues/1150
The only real argument against allowing mirrors is that it
increased binary size. Which, in my opinion is a consideration
that an application developer should be able to make for himself,
ruled away by the platform.
But I fear that it will not be possible to convince the current
Flutter team of that opinion, maybe when the team expands and
people that share our opinion join, but don't count on it.
I'd like to avoid using mirrors, but what about ORM which needs to reflect an object to store/restore it to/from a database? Is it possible to do this without reflection?