script function

Node script({
  1. bool? async,
  2. String? charset,
  3. bool? defer,
  4. String? src,
  5. String? type,
  6. String? id,
  7. dynamic className,
  8. dynamic style,
  9. Map<String, dynamic> p = const {},
  10. @deprecated Map<String, dynamic> props = const {},
  11. Iterable<Node> c = const [],
  12. @deprecated Iterable<Node> children = const [],
})

Implementation

Node script(
        {bool? async,
        String? charset,
        bool? defer,
        String? src,
        String? type,
        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(
        'script',
        _apply([
          p,
          props
        ], {
          'async': async,
          'charset': charset,
          'defer': defer,
          'src': src,
          'type': type,
          'id': id,
          'class': className,
          'style': style
        }),
        [...c, ...children]);