dashPath method
Creates a dashed path line.
Implementation
CustomPaint dashPath({required double width, required double height}) {
return CustomPaint(
size: Size(_isEmpty(width) ? widget.strokeWidth : width, _isEmpty(height) ? widget.strokeWidth : height),
foregroundPainter: _DashedLinePainter()
..color = widget.color ?? Theme.of(context).colorScheme.onSurface
..dottedLength = widget.dottedLength
..space = widget.space
..strokeWidth = widget.strokeWidth
..corner = widget.corner
..isShape = !_isEmpty(height) && !_isEmpty(width),
);
}