TooGeneric class

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

Annotations

Constructors

TooGeneric({String extensionForType})
const

Properties

extensionForType String
The type which would be a better fit
final
hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
Returns a string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited