whereAnnotatedWithAnyOf method
Returns the MethodReflection that matches any annotations
.
Implementation
Iterable<MethodReflection<O, R>> whereAnnotatedWithAnyOf(
List<Object> annotations) {
if (annotations.isEmpty) {
return <MethodReflection<O, R>>[];
}
return where((m) => m.annotations.any((o) => annotations.contains(o)));
}