TooGeneric class Null safety
A method annotated with @tooGeneric is a indicator that the method is defined for a generic type
T but only works for type
X extends T.
The method will be moved to a more specific type when dart extension methods are implemented. https://github.com/dart-lang/language/issues/41
@TooGeneric(type: X) to define which type should be used
- @Deprecated("Use static extension methods")