We know that we can use kernel-to-kernel transformation to change the dill (dart intermediate language). There is already some libraries, such as https://github.com/alibaba-flutter/aspectd, which uses this to modify the code during compilation. Therefore, I think we can do the same thing to transform the functional_widgets. :)
P.S. This article explains this technique, but it is only in Chinese...
We know that we can use kernel-to-kernel transformation to change the
dill
(dart intermediate language). There is already some libraries, such as https://github.com/alibaba-flutter/aspectd, which uses this to modify the code during compilation. Therefore, I think we can do the same thing to transform thefunctional_widget
s. :)P.S. This article explains this technique, but it is only in Chinese...