I want to be able to specify a generic type for a particular class method in the droid:
class Foo{
// Dart doesn't support declaration of type parameters in methods
void bar<T>(T a){}
}
I know that I can specify generic types in classes, but why not methods?
0xor1 source
share