getStaticField<T> method

T? getStaticField<T>(
  1. String fieldName
)

Returns the static field value for fieldName.

Implementation

T? getStaticField<T>(String fieldName) {
  var field = staticField<T>(fieldName);
  return field?.get();
}