MobileScanner constructor
const
MobileScanner({
- MobileScannerController? controller,
- void onDetect(
- BarcodeCapture barcodes
- void onDetectError(
- Object error,
- StackTrace stackTrace
- BoxFit fit = BoxFit.cover,
- MobileScannerErrorBuilder? errorBuilder,
- LayoutWidgetBuilder? overlayBuilder,
- Widget placeholderBuilder()?,
- Rect? scanWindow,
- double scanWindowUpdateThreshold = 0.0,
- Key? key,
Create a new MobileScanner using the provided controller
.
Implementation
const MobileScanner({
this.controller,
this.onDetect,
this.onDetectError = _onDetectErrorHandler,
this.fit = BoxFit.cover,
this.errorBuilder,
this.overlayBuilder,
this.placeholderBuilder,
this.scanWindow,
this.scanWindowUpdateThreshold = 0.0,
super.key,
});