hasAnnotation<A> method

bool hasAnnotation<A>()

Implementation

bool hasAnnotation<A>() {
  return annotations.any((a) => a.runtimeType == A);
}