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
-
- @Deprecated("Use static extension methods")
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.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited