InputElement constructor - InputElement - dart:html library (original) (raw)

description

InputElement({

  1. String? type, })

Implementation

factory InputElement({String? type}) {
  InputElement e = document.createElement("input") as InputElement;
  if (type != null) {
    try {
      // IE throws an exception for unknown types.
      e.type = type;
    } catch (_) {}
  }
  return e;
}