Index: pkg/analyzer/lib/src/dart/element/element.dart |
diff --git a/pkg/analyzer/lib/src/dart/element/element.dart b/pkg/analyzer/lib/src/dart/element/element.dart |
index 433778622c551d350918ed8f8962042142f58fb2..d465b405556fad6a281fb6302d3840935c2c43ba 100644 |
--- a/pkg/analyzer/lib/src/dart/element/element.dart |
+++ b/pkg/analyzer/lib/src/dart/element/element.dart |
@@ -7198,6 +7198,19 @@ class ParameterElementImpl_ofImplicitSetter extends ParameterElementImpl { |
} |
@override |
+ bool get isCovariant { |
+ if (inheritsCovariant) { |
+ return true; |
+ } |
+ for (ElementAnnotationImpl annotation in setter.variable.metadata) { |
+ if (annotation.isCovariant) { |
+ return true; |
+ } |
+ } |
+ return false; |
+ } |
+ |
+ @override |
DartType get type => setter.variable.type; |
@override |