Embed function

Component Embed({
  1. required String src,
  2. String? className,
  3. String? style,
  4. String? id,
  5. String? type,
  6. int? width,
  7. int? height,
  8. Map<String, String>? attributes,
  9. Map<String, EventCallback>? events,
  10. Key? key,
})

An embed element.

The HTML <embed> element embeds external content.

Implementation

Component Embed({
  required String src,
  String? className,
  String? style,
  String? id,
  String? type,
  int? width,
  int? height,
  Map<String, String>? attributes,
  Map<String, EventCallback>? events,
  Key? key,
}) {
  return jaspr.embed(
    src: src,
    classes: className,
    styles: parseStyles(style),
    id: id,
    type: type,
    width: width,
    height: height,
    attributes: attributes,
    events: events,
    key: key,
  );
}