hasAnnotation<T> method

bool hasAnnotation<T>()

Implementation

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