findMethodsOnClass function

List<MethodMirror> findMethodsOnClass(
  1. Type cls,
  2. Type annotation
)

Returns all methods with provided annotation on passed class.

Implementation

List<MethodMirror> findMethodsOnClass(Type cls, Type annotation) =>
    UnmodifiableListView(
        _findDeclarationsOn(reflectClass(cls), reflectClass(annotation))
            .map((annoDecl) => annoDecl.declaration)
            .whereType<MethodMirror>());