ElementAnnotationImpl constructor
ElementAnnotationImpl({
- required DartType type,
- required Element annotatedElement,
- required ConstantValueCompute constantValueCompute,
- 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;