getLinePath method
Implementation
Path getLinePath(Offset point1, Offset point2, double scale) {
switch (lineType) {
case LineType.solid:
return getSolidLinePath(point1, point2);
case LineType.dashed:
return getDashedLinePath(point1, point2, scale, 16, 16);
case LineType.dotted:
return getDashedLinePath(
point1,
point2,
scale,
lineWidth,
lineWidth * 5,
);
}
}