declareAnnotation method

void declareAnnotation(
  1. String name,
  2. Object annotation
)

Records annotation as the type name was written with here.

Implementation

void declareAnnotation(String name, Object annotation) {
  (_declaredAnnotations ??= <String, Object>{})[name] = annotation;
}