script function

Element script(
  1. dynamic children, {
  2. String? src,
  3. String? type,
  4. bool? async,
  5. bool? defer,
  6. String? id,
  7. String? className,
  8. Map<String, dynamic>? attributes,
})

Implementation

Element script(
  dynamic children, {
  String? src,
  String? type,
  bool? async,
  bool? defer,
  String? id,
  String? className,
  Map<String, dynamic>? attributes,
}) => _el(
  'script',
  children,
  id: id,
  className: className,
  attributes: {
    'src': src,
    'type': type,
    'async': async,
    'defer': defer,
    ...?attributes,
  },
);