I know that mirrors is blocked now because it causes the generated packages to be very large.
However, on the long term, it should remain a goal to find a solution for this. Many libraries use mirrors so not being able to use mirrors for Flutter apps will make the framework a lot less powerful.
The trade-off between large package sizes and using mirrors should be left to the user. A possible solution might be to use an explicit --allow-mirrors flag. But of course the ultimate solution should be to find a way to use mirrors without blowing up package sizes.
Java has reflection and Objective-C has Runtime Reference, so why would Flutter not have a reflection system?
I know that mirrors is blocked now because it causes the generated packages to be very large.
However, on the long term, it should remain a goal to find a solution for this. Many libraries use mirrors so not being able to use mirrors for Flutter apps will make the framework a lot less powerful.
The trade-off between large package sizes and using mirrors should be left to the user. A possible solution might be to use an explicit
--allow-mirrorsflag. But of course the ultimate solution should be to find a way to use mirrors without blowing up package sizes.Java has reflection and Objective-C has Runtime Reference, so why would Flutter not have a reflection system?