hasAnnotationOfExact method

bool hasAnnotationOfExact(
  1. Element element
)

Examines the annotations on element related to this type checker.

Returns if a constant annotating element is exactly this type.

Implementation

bool hasAnnotationOfExact(Element element) => firstAnnotationOfExact(element) != null;