annotationsOf method

Iterable<ElementAnnotation> annotationsOf(
  1. Element element
)

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);
});