Calling a static method from a generic constraint Dart
问题 I'm trying to call a static method from a generic type I receive. Is that even possible? Furthermore, I apply a Type constraint in order to only manipulate the object from its parent class. Here is a short example of what I'm trying to achieve: class A { static func() { print("A"); } } class B extends A { static func() { print("B"); } } concret<T extends A>() { T.func(); // I expected a print('B') } main() { concret<B>(); } 回答1: No, it's not possible. Dart static method invocations are