script constructor

const script({
  1. bool async = false,
  2. bool defer = false,
  3. String? src,
  4. String? content,
  5. String? id,
  6. String? classes,
  7. Styles? styles,
  8. Map<String, String>? attributes,
  9. Map<String, EventCallback>? events,
  10. Key? key,
})

The <script> HTML element is used to embed executable code or data; this is typically used to embed or refer to JavaScript code. The <script> element can also be used with other languages, such as WebGL's GLSL shader programming language and JSON.

Implementation

const script({
  this.async = false,
  this.defer = false,
  this.src,
  this.content,
  this.id,
  this.classes,
  this.styles,
  this.attributes,
  this.events,
  super.key,
});