ScanView constructor

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

Implementation

ScanView({
  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');