annotation_crawler library

This library helps finding classes and methods with specific annotations.

Functions

annotatedDeclarations(Type annotation, {Type? on, bool recursive = false}) List<AnnotatedDeclaration>
Returns a List of declarations that have given annotation.
findClasses(Type annotation) List<ClassMirror>
Goes through all the classes in this library, and returns those with the provided class as annotation.
findMethodsOnClass(Type cls, Type annotation) List<MethodMirror>
Returns all methods with provided annotation on passed class.
findMethodsOnInstance(Object obj, Type annotation) List<MethodMirror>
Returns all methods with provided annotation in the provided instance.