whereAnnotatedWithType<T> method

Iterable<FunctionReflection<O, R>> whereAnnotatedWithType<T>()

Returns the MethodReflection that has an annotation of type T.

Implementation

Iterable<FunctionReflection<O, R>> whereAnnotatedWithType<T>() =>
    where((m) => m.annotations.any((o) => o is T));