When I try to get the type of a class with generic
class Dummy<T> {
T? value;
}
void main() {
Type t = Dummy<int>;
}
I get this error:
This requires the 'constructor-tearoffs' language feature to be enabled.
Try updating your pubspec.yaml to set the minimum SDK constraint to 2.14.0 or higher, and running 'pub get'.
My pubspec.yaml containes the right SDK version, and I run already flutter clean and flutter pub get
environment:
sdk: ">=2.14.4 <3.0.0"
How do I solve it?