setInputValue function
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;
}