是否有一个与C#功能相同的Dart语法来指定泛型类型的类型约束,例如在类似C#的语法中where TBase is SomeType:
where TBase is SomeType
class StackPanel<TBase> extends Panel<TBase> where TBase : SomeType{ }
c# generics constraints dart
c# ×1
constraints ×1
dart ×1
generics ×1