ScanView constructor

const ScanView({
  1. Key? key,
  2. ScanController? controller,
  3. CaptureCallback? onCapture,
  4. Color scanLineColor = Colors.green,
  5. double scanAreaScale = 0.7,
})

Implementation

const ScanView({
  super.key,
  this.controller,
  this.onCapture,
  this.scanLineColor = Colors.green,
  this.scanAreaScale = 0.7,
})  : assert(scanAreaScale <= 1.0, 'scanAreaScale must <= 1.0'),
      assert(scanAreaScale > 0.0, 'scanAreaScale must > 0.0');