findMethodsOnInstance function

List<MethodMirror> findMethodsOnInstance(
  1. Object obj,
  2. Type annotation
)

Returns all methods with provided annotation in the provided instance.

Implementation

List<MethodMirror> findMethodsOnInstance(Object obj, Type annotation) =>
    findMethodsOnClass(obj.runtimeType, annotation);