This seems to be allowed
List<Type> myTypes = List();
myTypes.add(SomeType);
List<Type> moreTypes = [int, String];
but this fails?
List<Type> myTypes = List();
myTypes.add(SomeGenericType<int>);
List<Type> moreTypes = [SomeGenericType<int>, SomeGenericType<String>];
The error message is:
The operator '<' isn't defined for the class 'Type'. Try defining the operator '<'.
I'm new to Dart coming mainly from a C,C# background, so this seems confusing and inconsistent. Why is a generic type treated any differently than a non-generic?