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. Iterable<Node> c = const [],
})

Implementation

Node script({
  bool? async,
  String? charset,
  bool? defer,
  String? src,
  String? type,
  String? id,
  className,
  style,
  Map<String, dynamic> p = const {},
  Iterable<Node> c = const [],
}) => h(
  'script',
  _apply(
    [p],
    {
      'async': async,
      'charset': charset,
      'defer': defer,
      'src': src,
      'type': type,
      'id': id,
      'class': className,
      'style': style,
    },
  ),
  [...c],
);