DataScannerConfiguration<T> constructor
DataScannerConfiguration<T> ({
- required List<
VisionProcessor> processors, - required List<
Extractor< extractors,T> > - OnExtracted<
T> ? onExtracted, - dynamic onPermissionDenied()?,
- dynamic onError()?,
- dynamic onZoomChanged()?,
- bool enableZoom = false,
- double detectionAreaHeight = 64,
- double? detectionAreaWidth,
- DetectionAreaMode detectionAreaMode = DetectionAreaMode.containsRect,
- Widget? upperHelper,
- Widget? lowerHelper,
- bool showOverlay = true,
- bool showTorchToggle = false,
- Alignment torchToggleAlignment = Alignment.bottomCenter,
- EdgeInsets torchToggleMargin = const EdgeInsets.all(32),
- DetectionOutlineConfig? detectionOutline,
- RouteObserver<
ModalRoute> ? routeObserver,
Implementation
DataScannerConfiguration({
required this.processors,
required this.extractors,
this.onExtracted,
this.onPermissionDenied,
this.onError,
this.onZoomChanged,
this.enableZoom = false,
this.detectionAreaHeight = 64,
this.detectionAreaWidth,
this.detectionAreaMode = DetectionAreaMode.containsRect,
this.upperHelper,
this.lowerHelper,
this.showOverlay = true,
this.showTorchToggle = false,
this.torchToggleAlignment = Alignment.bottomCenter,
this.torchToggleMargin = const EdgeInsets.all(32),
this.detectionOutline,
RouteObserver<ModalRoute>? routeObserver,
}) : _routeObserver = routeObserver ?? RouteObserver();