annotationsOfExact method
Returns annotating constants on element of exactly this type.
Throws UnresolvedAnnotationException on unresolved annotations unless
throwOnUnresolved is explicitly set to false (default is true).
Implementation
Iterable<DartObject> annotationsOfExact(
Element element, {
bool throwOnUnresolved = true,
}) =>
_annotationsWhere(
element,
isExactlyType,
throwOnUnresolved: throwOnUnresolved,
);