setValue method

void setValue(
  1. String value
)

Implementation

void setValue(String value) {
  if (input != null) {
    if (input?.tagName == "INPUT") {
      (input as HTMLInputElement).value = value;
    }

    if (input?.tagName == "TEXTAREA") {
      (input as HTMLTextAreaElement).value = value;
    }
  }
}