DashedLine.svgPath constructor

DashedLine.svgPath(
  1. String svgPath, {
  2. Key? key,
  3. required Color color,
  4. LineFit lineFit = LineFit.contain,
  5. Alignment alignment = Alignment.center,
  6. double dashLength = 4,
  7. double dashSpace = 8,
  8. StrokeCap dashCap = StrokeCap.butt,
  9. double width = 1,
})

Creates a dashed line following a path defined using SVG path commands.

The svgPath is a path definition, i.e. a list of path commands known from the SVG file format.

See also:

Implementation

DashedLine.svgPath(
  String svgPath, {
  Key? key,
  required this.color,
  this.lineFit = LineFit.contain,
  this.alignment = Alignment.center,
  this.dashLength = 4,
  this.dashSpace = 8,
  this.dashCap = StrokeCap.butt,
  this.width = 1,
})  : path = parseSvgPath(svgPath),
      super(key: key);