Records annotation as the type name was written with here.
annotation
name
void declareAnnotation(String name, Object annotation) { (_declaredAnnotations ??= <String, Object>{})[name] = annotation; }