AnnotationFieldDeclaration constructor
const
AnnotationFieldDeclaration()
Represents a field of an annotation.
This interface provides access to:
- The field's name
- The field's type
- The value of the field
Example
final annotation = ...;
final fields = annotation.getFields();
print(fields.map((f) => f.getName())); // ["value"]
Implementation
const AnnotationFieldDeclaration();