script static method
Creates a script head tag descriptor.
Implementation
static HeadTag script({
String? src,
String? content,
bool defer = false,
bool async = false,
Map<String, Object?> props = const {},
}) {
return HeadTag(
'script',
props: {
...props,
if (src != null) 'src': src,
if (defer) 'defer': true,
if (async) 'async': true,
},
content: content,
);
}