ElementAnnotationImpl constructor

ElementAnnotationImpl({
  1. required DartType type,
  2. required Element annotatedElement,
  3. required ConstantValueCompute constantValueCompute,
  4. required DeclarationRef declarationRef,
})

Creates an element annotation with the specified parameters.

@param type The type of this annotation @param annotatedElement The element being annotated @param constantValueCompute Function to compute the constant value @param declarationRef Reference to the annotation declaration

Implementation

ElementAnnotationImpl({
  required this.type,
  required this.annotatedElement,
  required ConstantValueCompute constantValueCompute,
  required this.declarationRef,
}) : _constantValueCompute = constantValueCompute;