script function
Node
script(
{ - bool? async,
- String? charset,
- bool? defer,
- String? src,
- String? type,
- String? id,
- dynamic className,
- dynamic style,
- Map<String, dynamic> p = const {},
- @deprecated Map<String, dynamic> props = const {},
- Iterable<Node> c = const [],
- @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]);