QRImage constructor

QRImage(
  1. String data, {
  2. bool logoRound = true,
  3. int size = 120,
  4. int radius = 0,
  5. ColorUint8? elementColor,
  6. ColorUint8? backgroundColor,
  7. int errorCorrectLevel = QrErrorCorrectLevel.L,
  8. int typeNumber = 0,
})

Generate QRcode image

  • data QR image data.
  • logo Logo to draw inside QR image
  • logoRound Make logo round.
  • size QR image size
  • radius Radius per block
  • elementColor Block color
  • backgroundColor Background color
  • errorCorrectLevel Error correct level
  • typeNumber Number of type generation (1 to 40 or 0 for auto)

Implementation

QRImage(
  this.data, {
  this.logo,
  this.logoRound = true,
  this.size = 120,
  this.radius = 0,
  this.elementColor,
  this.backgroundColor,
  this.errorCorrectLevel = QrErrorCorrectLevel.L,
  this.typeNumber = 0,
});