hasAnnotation<A> abstract method
Checks if this element has a specific annotation.
Type Parameters:
A: The annotation type to check for
Returns:
trueif the annotation is presentfalseotherwise
Example:
if (field.hasDirectAnnotation<Transient>()) {
print('Field is transient and will not be serialized');
}
Implementation
bool hasAnnotation<A>();