line method

void line({
  1. int thickness = 1,
})

Draw horizontal line

Implementation

void line({int thickness = 1}) {
  _ensureHeight(runningHeight + thickness + 20);
  fillRect(
    utilImage,
    x1: margin.left,
    x2: paperSize.width - margin.right,
    y1: runningHeight,
    y2: runningHeight + thickness,
    color: textColor,
  );
  runningHeight += thickness + 20;
}