hasAnnotationOf method
Examines the annotations on element
related to this type checker.
Returns if a constant annotating element
is assignable to this type.
Implementation
bool hasAnnotationOf(Element element) => firstAnnotationOf(element) != null;