getClassAnnotation function
Implementation
ConstantReader? getClassAnnotation(ClassElement clazz, Type type) {
final annot =
typeChecker(type).firstAnnotationOf(clazz, throwOnUnresolved: false);
if (annot != null) return ConstantReader(annot);
return null;
}