ElementAnnotationImpl class
Implementation of an element annotation.
This class provides the concrete implementation of ElementAnnotation with support for recognizing common annotations from packages like 'meta' and 'dart:core'. It resolves the constant value of the annotation lazily to improve performance.
- Implemented types
Constructors
- ElementAnnotationImpl({required DartType type, required Element annotatedElement, required ConstantValueCompute constantValueCompute, required DeclarationRef declarationRef})
- Creates an element annotation with the specified parameters.
Properties
- annotatedElement → Element
-
The element that this annotation is applied to.
final
- constant → Constant
-
The constant value of this annotation.
no setteroverride
- declarationRef → DeclarationRef
-
Reference to the declaration of this annotation.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isAlwaysThrows → bool
-
Whether this annotation is
@alwaysThrowsfrom the meta package.no setteroverride - isDeprecated → bool
-
Whether this annotation is
@deprecatedor@Deprecatedfrom dart:core.no setteroverride - isDoNotStore → bool
-
Whether this annotation is
@doNotStorefrom the meta package.no setteroverride - isFactory → bool
-
Whether this annotation is
@factoryfrom the meta package.no setteroverride - isImmutable → bool
-
Whether this annotation is
@immutablefrom the meta package.no setteroverride - isInternal → bool
-
Whether this annotation is
@internalfrom the meta package.no setteroverride - isIsTest → bool
-
Whether this annotation is
@isTestfrom the meta package.no setteroverride - isIsTestGroup → bool
-
Whether this annotation is
@isTestGroupfrom the meta package.no setteroverride - isLiteral → bool
-
Whether this annotation is
@literalfrom the meta package.no setteroverride - isMustBeOverridden → bool
-
Whether this annotation is
@mustBeOverriddenfrom the meta package.no setteroverride - isMustCallSuper → bool
-
Whether this annotation is
@mustCallSuperfrom the meta package.no setteroverride - isNonVirtual → bool
-
Whether this annotation is
@nonVirtualfrom the meta package.no setteroverride - isOptionalTypeArgs → bool
-
Whether this annotation is
@optionalTypeArgsfrom the meta package.no setteroverride - isOverride → bool
-
Whether this annotation is
@overridefrom dart:core.no setteroverride - isProtected → bool
-
Whether this annotation is
@protectedfrom the meta package.no setteroverride - isRedeclare → bool
-
Whether this annotation is
@redeclarefrom the meta package.no setteroverride - isReopen → bool
-
Whether this annotation is
@reopenfrom the meta package.no setteroverride - isRequired → bool
-
Whether this annotation is
@requiredfrom the meta package.no setteroverride - isSealed → bool
-
Whether this annotation is
@sealedfrom the meta package.no setteroverride - isTarget → bool
-
Whether this annotation is
@Targetfrom the meta_meta package.no setteroverride - isUseResult → bool
-
Whether this annotation is
@useResultor@UseResultfrom the meta package.no setteroverride - isVisibleForOverriding → bool
-
Whether this annotation is
@visibleForOverridingfrom the meta package.no setteroverride - name → String
-
The name of the annotation as it appears in code.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- type → DartType
-
The type of this annotation.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited