SvgRect constructor
SvgRect({})
Creates an SVG <rect> rectangle shape descriptor.
Implementation
SvgRect({
num? x,
num? y,
required num width,
required num height,
num? rx,
String? fill,
String? stroke,
super.className,
Map<String, String>? attrs,
super.on,
}) : super('rect',
attrs: _mergeAttrs(attrs, {
if (x != null) 'x': '$x',
if (y != null) 'y': '$y',
'width': '$width',
'height': '$height',
if (rx != null) 'rx': '$rx',
if (fill != null) 'fill': fill,
if (stroke != null) 'stroke': stroke,
}));