BarcodeScanner constructor
const
BarcodeScanner({
- Key? key,
- required String lineColor,
- required String cancelButtonText,
- required bool isShowFlashIcon,
- required ScanType scanType,
- CameraFace cameraFace = CameraFace.back,
- required dynamic onScanned(),
- String? appBarTitle,
- bool? centerTitle,
- Widget? child,
- BarcodeAppBar? barcodeAppBar,
- int? delayMillis,
- Function? onClose,
- 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,
});