InputElement constructor

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