MobileScanner constructor
const
MobileScanner({
- MobileScannerController? controller,
- MobileScannerErrorBuilder? errorBuilder,
- required void onDetect(
- BarcodeCapture barcodes
- required Widget cameraPreviewBuilder(
- BuildContext context,
- Widget texture,
- MobileScannerArguments arguments
- Rect? scanWindowBuilder()?,
- @Deprecated('Use onScannerStarted() instead.') void onStart(
- MobileScannerArguments? arguments
- void onScannerStarted(
- MobileScannerArguments? arguments
- Widget placeholderBuilder()?,
- bool startDelay = false,
- Color borderColor = const Color(0xFF00BA88),
- double borderWidth = 10,
- Key? key,
Create a new MobileScanner using the provided controller
and onBarcodeDetected
callback.
Implementation
const MobileScanner({
this.controller,
this.errorBuilder,
required this.onDetect,
required this.cameraPreviewBuilder,
this.scanWindowBuilder,
@Deprecated('Use onScannerStarted() instead.') this.onStart,
this.onScannerStarted,
this.placeholderBuilder,
this.startDelay = false,
this.borderColor = const Color(0xFF00BA88),
this.borderWidth = 10,
super.key,
});