How QRCodeBuilder works
mainAfter calling a shape factory method like QRCode.ofSquares(), you receive a QRCodeBuilder instance. This builder allows you to chain configuration methods to customize the QRCode before calling .build(content).
Key customization capabilities include:
.withColor(color): Sets the foreground color (useqrcode.color.Colors)..withSize(size): Adjusts the size of the cells..withSpacing(spacing): Adjusts the spacing.- Adding a logo: Allows embedding a logo and optionally removing the cells behind it.