errorLevel property

SunmiQrcodeLevel errorLevel
final

The error correction level for the QR code.

errorLevel controls how much of the QR code can be damaged or obscured while still being readable. Higher levels of error correction make the QR code more resilient but increase the amount of data required. The available levels are defined in the SunmiQrcodeLevel enum:

  • LEVEL_L: Low error correction (approx. 7% of the code can be restored).
  • LEVEL_M: Medium error correction (approx. 15% of the code can be restored).
  • LEVEL_Q: Quartile error correction (approx. 25% of the code can be restored).
  • LEVEL_H: High error correction (approx. 30% of the code can be restored).

Default value is SunmiQrcodeLevel.LEVEL_L.

Implementation

final SunmiQrcodeLevel errorLevel;