ElementAnnotation class abstract
Represents an annotation on a Dart element.
Annotations provide additional metadata to elements using the @ syntax.
This class provides access to the annotation's constant value and type,
as well as convenience methods for checking common annotations from
packages like 'meta'.
- Implementers
Constructors
Properties
- annotatedElement → Element
-
The element that this annotation is applied to.
no setter
- constant → Constant
-
The constant value of this annotation.
no setter
- declarationRef → DeclarationRef
-
Reference to the declaration of this annotation.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- isAlwaysThrows → bool
-
Whether this annotation is
@alwaysThrowsfrom the meta package.no setter - isDeprecated → bool
-
Whether this annotation is
@deprecatedor@Deprecatedfrom dart:core.no setter - isDoNotStore → bool
-
Whether this annotation is
@doNotStorefrom the meta package.no setter - isFactory → bool
-
Whether this annotation is
@factoryfrom the meta package.no setter - isImmutable → bool
-
Whether this annotation is
@immutablefrom the meta package.no setter - isInternal → bool
-
Whether this annotation is
@internalfrom the meta package.no setter - isIsTest → bool
-
Whether this annotation is
@isTestfrom the meta package.no setter - isIsTestGroup → bool
-
Whether this annotation is
@isTestGroupfrom the meta package.no setter - isLiteral → bool
-
Whether this annotation is
@literalfrom the meta package.no setter - isMustBeOverridden → bool
-
Whether this annotation is
@mustBeOverriddenfrom the meta package.no setter - isMustCallSuper → bool
-
Whether this annotation is
@mustCallSuperfrom the meta package.no setter - isNonVirtual → bool
-
Whether this annotation is
@nonVirtualfrom the meta package.no setter - isOptionalTypeArgs → bool
-
Whether this annotation is
@optionalTypeArgsfrom the meta package.no setter - isOverride → bool
-
Whether this annotation is
@overridefrom dart:core.no setter - isProtected → bool
-
Whether this annotation is
@protectedfrom the meta package.no setter - isRedeclare → bool
-
Whether this annotation is
@redeclarefrom the meta package.no setter - isReopen → bool
-
Whether this annotation is
@reopenfrom the meta package.no setter - isRequired → bool
-
Whether this annotation is
@requiredfrom the meta package.no setter - isSealed → bool
-
Whether this annotation is
@sealedfrom the meta package.no setter - isTarget → bool
-
Whether this annotation is
@Targetfrom the meta_meta package.no setter - isUseResult → bool
-
Whether this annotation is
@useResultor@UseResultfrom the meta package.no setter - isVisibleForOverriding → bool
-
Whether this annotation is
@visibleForOverridingfrom the meta package.no setter - name → String
-
The name of the annotation as it appears in code.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- type → DartType
-
The type of this annotation.
no setter
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited