addMetadata method

void addMetadata(
  1. ElementAnnotation annotation
)

Adds a metadata annotation to this element.

Implementation

void addMetadata(ElementAnnotation annotation) {
  _metadata.add(annotation);
}