getFieldNames abstract method

List<String> getFieldNames()

Returns a list of the annotation's field names.

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

Example

final annotation = ...;
final fieldNames = annotation.getFieldNames();
print(fieldNames); // ["value"]

Implementation

List<String> getFieldNames();