ScannerBox constructor

const ScannerBox({
  1. Key? key,
  2. required Rect boundingRect,
  3. required double scanProgress,
  4. required double alpha,
  5. bool isScanned = false,
  6. bool isIdle = false,
  7. bool isCapturing = false,
  8. bool showQrContent = false,
  9. String? qrData,
  10. Rect? qrStartRect,
  11. Rect? qrTargetRect,
  12. double qrProgress = 0.0,
  13. Color accentColor = kAccent,
  14. Color successColor = kSuccess,
  15. Color scanLineColor = kAccent,
})

Implementation

const ScannerBox({
  super.key,
  required this.boundingRect,
  required this.scanProgress,
  required this.alpha,
  this.isScanned = false,
  this.isIdle = false,
  this.isCapturing = false,
  this.showQrContent = false,
  this.qrData,
  this.qrStartRect,
  this.qrTargetRect,
  this.qrProgress = 0.0,
  this.accentColor = kAccent,
  this.successColor = kSuccess,
  this.scanLineColor = kAccent,
});