ScriptHtmlTagAttributes constructor
ScriptHtmlTagAttributes({
- String type = "text/javascript",
- String? id,
- bool? async,
- bool? defer,
- CrossOrigin? crossOrigin,
- String? integrity,
- bool? noModule,
- String? nonce,
- ReferrerPolicy? referrerPolicy,
- dynamic onLoad()?,
- dynamic onError()?,
Implementation
ScriptHtmlTagAttributes(
{this.type = "text/javascript",
this.id,
this.async,
this.defer,
this.crossOrigin,
this.integrity,
this.noModule,
this.nonce,
this.referrerPolicy,
this.onLoad,
this.onError}) {
if (this.onLoad != null || this.onError != null) {
assert(this.id != null,
'onLoad and onError callbacks require the id property to be set.');
}
}