DashedLine constructor

const DashedLine({
  1. Key? key,
  2. required Path path,
  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.

Implementation

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