hasAnnotationOf abstract method
Returns if a constant annotating element
is assignable to this type.
Throws on unresolved annotations unless throwOnUnresolved
is false
.
Implementation
bool hasAnnotationOf(
Element element, {
bool throwOnUnresolved = true,
});