rect constructor

const rect(
  1. List<Component> children, {
  2. String? x,
  3. String? y,
  4. String? rx,
  5. String? ry,
  6. String? width,
  7. String? height,
  8. Color? fill,
  9. Color? stroke,
  10. String? strokeWidth,
  11. String? id,
  12. String? classes,
  13. Styles? styles,
  14. Map<String, String>? attributes,
  15. Map<String, EventCallback>? events,
  16. Key? key,
})

The <rect> element is a basic SVG shape that draws rectangles, defined by their position, width, and height. The rectangles may have their corners rounded.

Implementation

const rect(
  this.children, {
  this.x,
  this.y,
  this.rx,
  this.ry,
  this.width,
  this.height,
  this.fill,
  this.stroke,
  this.strokeWidth,
  this.id,
  this.classes,
  this.styles,
  this.attributes,
  this.events,
  super.key,
});