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