annotation_crawler 2.0.0 copy "annotation_crawler: ^2.0.0" to clipboard
annotation_crawler: ^2.0.0 copied to clipboard

Helps finding classes or methods with specific annotations with the dart mirror system.

Annotation Crawler #

Helps finding annotated declarations in a particular scope.

The main functions to use in this library are:

// Returns a List of AnnotatedDeclaration for each top level declaration that has Foo as annotation.
annotatedDeclarations(Foo);
// Does the same, but only for declarations in SomeClass
annotatedDeclarations(Foo, on: SomeClass);
// Returns a List of ClassMirror for each class that has Foo as annotation.
findClasses(Foo);
// Returns a List of MethodMirror for each method on SomeClass that has Foo as annotation.
findMethodsOnClass(SomeClass, Foo);
// Returns a List of MethodMirror for each method on someObject that has Foo as annotation.
findMethodsOnInstance(someObject, Foo);
0
likes
140
pub points
3%
popularity

Publisher

unverified uploader

Helps finding classes or methods with specific annotations with the dart mirror system.

Repository (GitLab)
View/report issues
Contributing

Documentation

API reference

License

MIT (LICENSE)

More

Packages that depend on annotation_crawler