findClasses function

List<ClassMirror> findClasses(
  1. Type annotation
)

Goes through all the classes in this library, and returns those with the provided class as annotation.

Implementation

List<ClassMirror> findClasses(Type annotation) => UnmodifiableListView(
    _topLevelAnnotatedDeclarations(reflectClass(annotation))
        .map((annoDecl) => annoDecl.declaration)
        .whereType<ClassMirror>());