Is there a Dart equivalent syntax to the c# ability to specify type constraints on a generic type, e.g. in C#-like syntax where TBase is SomeType
:
class StackPanel<TBase> extends Panel<TBase> where TBase : SomeType{
}
Is there a Dart equivalent syntax to the c# ability to specify type constraints on a generic type, e.g. in C#-like syntax where TBase is SomeType
:
class StackPanel<TBase> extends Panel<TBase> where TBase : SomeType{
}
You can specify type constraints like this :
The language specification says :