hasAnnotationOf method

bool hasAnnotationOf(
  1. Element element
)

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;