dottedLine method
Draw dotted horizontal line
Implementation
void dottedLine({int thickness = 1, int dotWidth = 5, int spacing = 3}) {
_ensureHeight(thickness + 20);
int x = margin.left;
while (x < paperSize.width - margin.right) {
fillRect(
utilImage,
x1: x,
x2: x + dotWidth,
y1: runningHeight,
y2: runningHeight + thickness,
color: textColor,
);
x += dotWidth + spacing;
}
runningHeight += thickness + 20;
}