setInputValue function

void setInputValue(
  1. dynamic input,
  2. String value
)

Implementation

void setInputValue(input, String value) {
  assert(isInputElement(input));
  if (input is HTMLInputElement && input.isA<HTMLInputElement>())
    input.value = value;
  else if (input is HTMLTextAreaElement && input.isA<HTMLTextAreaElement>())
    input.value = value;
}