SvgText constructor
SvgText({})
Creates an SVG <text> element descriptor with x, y, and fill shorthands.
Implementation
SvgText({
super.text,
num? x,
num? y,
String? fill,
super.className,
Map<String, String>? attrs,
super.on,
super.children = const [],
}) : super('text',
attrs: _mergeAttrs(attrs, {
if (x != null) 'x': '$x',
if (y != null) 'y': '$y',
if (fill != null) 'fill': fill,
}));