InputElement 构造函数

InputElement(
  1. {String? type}
)

实现

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