paintBar method
Implementation
void paintBar(PaintingContext context, Offset offset, BarcodeBar element) {
if (!element.black) {
return;
}
context.canvas.drawRect(
Rect.fromLTWH(
offset.dx + element.left,
offset.dy + element.top,
element.width,
element.height,
),
barStyle,
);
}