hasAnnotationOfExact abstract method

bool hasAnnotationOfExact(
  1. Element element, {
  2. bool throwOnUnresolved = true,
})

Returns if a constant annotating element is exactly this type.

Throws UnresolvedAnnotationException on unresolved annotations unless throwOnUnresolved is explicitly set to false (default is true).

Implementation

bool hasAnnotationOfExact(
  Element element, {
  bool throwOnUnresolved = true,
});