drawDashedLine method
void
drawDashedLine({})
Draws a straight dashed line from from to to.
Implementation
void drawDashedLine({
required Offset from,
required Offset to,
required double strokeWidth,
required Color color,
required List<double> dashPattern,
}) =>
beginPath(
strokeWidth: strokeWidth,
color: color,
dashPattern: dashPattern,
)
..moveTo(from.dx, from.dy)
..lineTo(to.dx, to.dy)
..stroke();