input function

Node input({
  1. String? accept,
  2. String? alt,
  3. bool? autocomplete,
  4. bool? autofocus,
  5. bool? checked,
  6. String? dirname,
  7. bool? disabled,
  8. String? form,
  9. String? formaction,
  10. String? formenctype,
  11. String? method,
  12. String? formnovalidate,
  13. String? formtarget,
  14. num? height,
  15. String? list,
  16. dynamic max,
  17. num? maxlength,
  18. dynamic min,
  19. bool? multiple,
  20. String? name,
  21. String? pattern,
  22. String? placeholder,
  23. bool? readonly,
  24. bool? required,
  25. num? size,
  26. String? src,
  27. num? step,
  28. String? type,
  29. String? value,
  30. num? width,
  31. String? id,
  32. dynamic className,
  33. dynamic style,
  34. Map<String, dynamic> p = const {},
})

Implementation

Node input({
  String? accept,
  String? alt,
  bool? autocomplete,
  bool? autofocus,
  bool? checked,
  String? dirname,
  bool? disabled,
  String? form,
  String? formaction,
  String? formenctype,
  String? method,
  String? formnovalidate,
  String? formtarget,
  num? height,
  String? list,
  max,
  num? maxlength,
  min,
  bool? multiple,
  String? name,
  String? pattern,
  String? placeholder,
  bool? readonly,
  bool? required,
  num? size,
  String? src,
  num? step,
  String? type,
  String? value,
  num? width,
  String? id,
  className,
  style,
  Map<String, dynamic> p = const {},
}) => SelfClosingNode(
  'input',
  _apply(
    [p],
    {
      'accept': accept,
      'alt': alt,
      'autocomplete': autocomplete == null
          ? null
          : (autocomplete ? 'on' : 'off'),
      'autofocus': autofocus,
      'checked': checked,
      'dirname': dirname,
      'disabled': disabled,
      'form': form,
      'formaction': formaction,
      'formenctype': formenctype,
      'method': method,
      'formnovalidate': formnovalidate,
      'formtarget': formtarget,
      'height': height,
      'list': list,
      'max': max,
      'maxlength': maxlength,
      'min': min,
      'multiple': multiple,
      'name': name,
      'pattern': pattern,
      'placeholder': placeholder,
      'readonly': readonly,
      'required': required,
      'size': size,
      'src': src,
      'step': step,
      'type': type,
      'value': value,
      'width': width,
      'id': id,
      'class': className,
      'style': style,
    },
  ),
);