hasAnnotation method

bool hasAnnotation(
  1. String annotation
)

Implementation

bool hasAnnotation(final String annotation) {
  return metadata2.annotations.indexWhere(
        (final md) => md.element2?.displayName == annotation,
      ) >=
      0;
}