getLinePath method

Path getLinePath(
  1. Offset point1,
  2. Offset point2,
  3. double scale
)

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