setField<T> method

void setField<T>(
  1. String fieldName,
  2. T value, [
  3. O? obj
])

Sets the field value for fieldName.

Implementation

void setField<T>(String fieldName, T value, [O? obj]) {
  var field = this.field<T>(fieldName, obj);
  field?.set(value);
}