getStaticFields abstract method

List<FieldDeclaration> getStaticFields()

Returns all static fields declared in this class or mixin.

Static fields are those declared with the static keyword. Each returned FieldDeclaration provides access to type, value, and metadata.

Example

for (final field in clazz.getStaticFields()) {
  print('${field.getName()} : ${field.getLinkDeclaration().getName()}');
}

Implementation

List<FieldDeclaration> getStaticFields();