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. @deprecated Map<String, dynamic> props = const {},
  15. Iterable<Node> c = const [],
  16. @deprecated Iterable<Node> children = 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 {},
        @deprecated Map<String, dynamic> props = const {},
        Iterable<Node> c = const [],
        @deprecated Iterable<Node> children = const []}) =>
    h(
        'form',
        _apply([
          p,
          props
        ], {
          '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, ...children]);