annotationsOf method
Examines the annotations on element related to this type checker.
Returns annotating constants on element assignable to this type.
Implementation
Iterable<ElementAnnotation> annotationsOf(Element element) => _annotationsWhere(element, (DartType ref) {
return isAssignableFromType(ref);
});