script function

DomNode 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<DomNode> c = const [],
  12. @deprecated Iterable<DomNode> children = const []}
)

Implementation

DomNode 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<DomNode> c: const [],
        @deprecated Iterable<DomNode> children: const []}) =>
    h(
        'script',
        _apply([
          p,
          props
        ], {
          'async': async,
          'charset': charset,
          'defer': defer,
          'src': src,
          'type': type,
          'id': id,
          'class': className,
          'style': style
        }),
        []..addAll(c ?? [])..addAll(children ?? []));