SvgPath constructor

SvgPath({
  1. required String d,
  2. String? fill,
  3. String? stroke,
  4. String? strokeWidth,
  5. String? className,
  6. Map<String, String>? attrs,
  7. Map<String, BloomEventHandler>? on,
})

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,
          }));