setPlaceholder method

void setPlaceholder(
  1. String value
)

Implementation

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

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