form function

Node form({
  1. String? accept,
  2. String? acceptCharset,
  3. String? action,
  4. bool? autocomplete,
  5. String? enctype,
  6. String? method,
  7. String? name,
  8. bool? novalidate,
  9. String? target,
  10. String? id,
  11. dynamic className,
  12. dynamic style,
  13. Map<String, dynamic> p = const {},
  14. Iterable<Node> c = const [],
})

Implementation

Node form({
  String? accept,
  String? acceptCharset,
  String? action,
  bool? autocomplete,
  String? enctype,
  String? method,
  String? name,
  bool? novalidate,
  String? target,
  String? id,
  className,
  style,
  Map<String, dynamic> p = const {},
  Iterable<Node> c = const [],
}) =>
    h(
        'form',
        _apply([
          p
        ], {
          'accept': accept,
          'accept-charset': acceptCharset,
          'action': action,
          'autocomplete':
              autocomplete != null ? (autocomplete ? 'on' : 'off') : null,
          'enctype': enctype,
          'method': method,
          'name': name,
          'novalidate': novalidate,
          'target': target,
          'id': id,
          'class': className,
          'style': style
        }),
        [...c]);