tooGeneric top-level constant

  1. @Deprecated("Use static extension methods")
Object const tooGeneric

A method annotated with @tooGeneric is a indicator that the method is defined for a generic type T but only works for type X where 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

Use @TooGeneric(type: X) to define which type should be used

Implementation

@Deprecated("Use static extension methods")
const Object tooGeneric = TooGeneric();