hasAnnotationOf method

bool hasAnnotationOf(
  1. String classname
)

Implementation

bool hasAnnotationOf(String classname) {
  final a = this;
  return a is ConstructorMetadataAnnotation && a.type.identifier.name == classname;
}