ScanView constructor

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

Implementation

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