SvgCircle constructor

SvgCircle({
  1. required num cx,
  2. required num cy,
  3. required num r,
  4. String? fill,
  5. String? stroke,
  6. String? className,
  7. Map<String, String>? attrs,
  8. Map<String, BloomEventHandler>? on,
})

Creates an SVG <circle> shape descriptor.

Implementation

SvgCircle({
  required num cx,
  required num cy,
  required num r,
  String? fill,
  String? stroke,
  super.className,
  Map<String, String>? attrs,
  super.on,
}) : super('circle',
          attrs: _mergeAttrs(attrs, {
            'cx': '$cx',
            'cy': '$cy',
            'r': '$r',
            if (fill != null) 'fill': fill,
            if (stroke != null) 'stroke': stroke,
          }));