CamCodeScanner constructor

CamCodeScanner({
  1. bool showDebugFrames = false,
  2. required Function onBarcodeResult,
  3. required double width,
  4. required double height,
  5. int refreshDelayMillis = 400,
  6. CamCodeScannerController? controller,
})

Camera barcode scanner widget Params:

  • showDebugFrames true|false - shows the current analysing picture
  • onBarcodeResult - call back to trigger on barcode result
  • width, height - dimensions
  • refreshDelayMillis - delay between to picture analysis

Implementation

CamCodeScanner({
  this.showDebugFrames = false,
  required this.onBarcodeResult,
  required this.width,
  required this.height,
  this.refreshDelayMillis = 400,
  this.controller,
});