setStaticField<T> method

void setStaticField<T>(
  1. String fieldName,
  2. T value
)

Sets the static field value for fieldName.

Implementation

void setStaticField<T>(String fieldName, T value) {
  var field = staticField<T>(fieldName);
  return field?.set(value);
}