getMeta function

ConstantReader? getMeta(
  1. FieldElement field
)

Implementation

ConstantReader? getMeta(FieldElement field) {
  final annotation = TypeChecker.typeNamed(Meta).firstAnnotationOf(field);
  if (annotation != null) {
    return ConstantReader(annotation);
  } else {
    return null;
  }
}