whereAnnotatedWithAnyOf method

Iterable<FunctionReflection<O, R>> whereAnnotatedWithAnyOf(
  1. List<Object> annotations
)

Returns the MethodReflection that matches any annotations.

Implementation

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