SvgPath constructor
SvgPath({})
Creates an SVG <path> shape descriptor.
Implementation
SvgPath({
required String d,
String? fill,
String? stroke,
String? strokeWidth,
super.className,
Map<String, String>? attrs,
super.on,
}) : super('path',
attrs: _mergeAttrs(attrs, {
'd': d,
if (fill != null) 'fill': fill,
if (stroke != null) 'stroke': stroke,
if (strokeWidth != null) 'stroke-width': strokeWidth,
}));