Remember Dart 2.1 has int-to-double conversion? I tried this with the Tween where T is dynamic, so its either 1.0 or 0.0 or a widget, and gave me an error to the flutter engine.
For some cases, I still have doubts to use Generics.
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.