methodHasAnnotation method
Implementation
DartObject? methodHasAnnotation(Type annotationType, MethodElement2 element) {
final annotations = TypeChecker.typeNamed(annotationType).annotationsOf(
element,
);
if (annotations.isEmpty) {
return null;
}
return annotations.first;
}