getMappedFields abstract method

Map<String, AnnotationFieldDeclaration> getMappedFields()

Returns a map of the annotation's fields, keyed by their name.

This map contains the fields of the annotation in the order they were declared. If no fields were declared, the map will be empty.

Example

final annotation = ...;
final mappedFields = annotation.getMappedFields();
print(mappedFields['value']); // ReflectedAnnotationField(...)

Implementation

Map<String, AnnotationFieldDeclaration> getMappedFields();