Dart, constraints on Generics?
You can specify type constraints like this : class StackPanel<TBase extends SomeType> extends Panel<TBase> { } The language specification says : A type parameter T may be suffixed with an extends clause that specifies the upper bound for T. If no extends clause is present, the upper bound is Object. It is a static type … Read more