svg constructor

const svg(
  1. List<Component> children, {
  2. String? viewBox,
  3. Unit? width,
  4. Unit? height,
  5. String? id,
  6. String? classes,
  7. Styles? styles,
  8. Map<String, String>? attributes,
  9. Map<String, EventCallback>? events,
  10. Key? key,
})

The <svg> element is a container that defines a new coordinate system and viewport. It is used as the outermost element of SVG documents, but it can also be used to embed an SVG fragment inside an SVG or HTML document.

Implementation

const svg(
  this.children, {
  this.viewBox,
  this.width,
  this.height,
  this.id,
  this.classes,
  this.styles,
  this.attributes,
  this.events,
  super.key,
});