QRCodeComponent constructor

QRCodeComponent({
  1. Key? key,
  2. required String qrData,
  3. double width = 200,
  4. double height = 200,
  5. Color color = Colors.black,
  6. Color backgroundColor = Colors.white,
  7. String? imageUrl,
  8. String? imageSrc,
  9. int errorCorrectionLevel = QrErrorCorrectLevel.L,
  10. int version = 4,
  11. dynamic onStartGenerate()?,
  12. dynamic onFinishGenerate()?,
})

Implementation

QRCodeComponent({
  Key? key,
  required this.qrData,
  this.width = 200,
  this.height = 200,
  this.color = Colors.black,
  this.backgroundColor = Colors.white,
  this.imageUrl,
  this.imageSrc,
  this.errorCorrectionLevel = QrErrorCorrectLevel.L, // Default to Low error correction level
  this.version = 4, // Default to version 4
  this.onStartGenerate,
  this.onFinishGenerate,
}) : super(key: key);