NiceScannerControl constructor

const NiceScannerControl({
  1. Key? key,
  2. ValueChanged<NiceScanResult>? onResult,
  3. VoidCallback? onScanStarted,
  4. VoidCallback? onScanStopped,
  5. List<String> targetFormats = const ['QR', 'EAN13', 'CODE128'],
  6. bool showHistory = true,
  7. String scanButtonLabel = 'Start Scan',
})

Implementation

const NiceScannerControl({
  super.key,
  this.onResult,
  this.onScanStarted,
  this.onScanStopped,
  this.targetFormats = const ['QR', 'EAN13', 'CODE128'],
  this.showHistory = true,
  this.scanButtonLabel = 'Start Scan',
});