annotationsOfExact abstract method

Iterable<DartObject> annotationsOfExact(
  1. Element element, {
  2. bool throwOnUnresolved = true,
})

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