setField method

void setField(
  1. String fieldName,
  2. dynamic value
)
inherited

Implementation

void setField(String fieldName, dynamic value) {
  var fieldElem = getFieldElement(fieldName);
  if (fieldElem == null) return;

  var valueStr = value != null ? '$value' : null;

  _renderedFieldsValues ??= {};
  _renderedFieldsValues![fieldName] = valueStr;

  fieldElem.setValue(valueStr);
}