BarcodeScanner constructor

const BarcodeScanner({
  1. Key? key,
  2. required String lineColor,
  3. required String cancelButtonText,
  4. required bool isShowFlashIcon,
  5. required ScanType scanType,
  6. CameraFace cameraFace = CameraFace.back,
  7. required dynamic onScanned(
    1. String
    ),
  8. String? appBarTitle,
  9. bool? centerTitle,
  10. Widget? child,
  11. BarcodeAppBar? barcodeAppBar,
  12. int? delayMillis,
  13. Function? onClose,
  14. ScanFormat scanFormat = ScanFormat.ALL_FORMATS,
})

Implementation

const BarcodeScanner({
  super.key,
  required this.lineColor,
  required this.cancelButtonText,
  required this.isShowFlashIcon,
  required this.scanType,
  this.cameraFace = CameraFace.back,
  required this.onScanned,
  this.appBarTitle,
  this.centerTitle,
  this.child,
  this.barcodeAppBar,
  this.delayMillis,
  this.onClose,
  this.scanFormat = ScanFormat.ALL_FORMATS,
});