AnnotationData class
Annotation data extracted from the analyzer element model.
Constructors
-
AnnotationData(String name, [Map<
String, Object?> arguments = const {}]) -
argumentsis optional so that marker annotations (@Unused()) need no empty map at the call site.
Properties
-
arguments
→ Map<
String, Object?> -
The constant-folded arguments, keyed by the annotation class's own
field names rather than by the call-site parameter names — so a
positional argument arrives under the field it initialises.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- name → String
-
The annotation's class name without the leading
@(SectionId,Form,MapsTo). It is taken from the resolved constructor's enclosing element, so a prefixed or aliased import still yields the declaring class name. An annotation whose element does not resolve is dropped entirely rather than recorded under a guessed name.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
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