DataScannerConfiguration<T> constructor

DataScannerConfiguration<T>({
  1. required List<VisionProcessor> processors,
  2. required List<Extractor<T>> extractors,
  3. OnExtracted<T>? onExtracted,
  4. dynamic onPermissionDenied()?,
  5. dynamic onError(
    1. String
    )?,
  6. dynamic onZoomChanged(
    1. double
    )?,
  7. bool enableZoom = false,
  8. double detectionAreaHeight = 64,
  9. double? detectionAreaWidth,
  10. DetectionAreaMode detectionAreaMode = DetectionAreaMode.containsRect,
  11. Widget? upperHelper,
  12. Widget? lowerHelper,
  13. bool showOverlay = true,
  14. bool showTorchToggle = false,
  15. Alignment torchToggleAlignment = Alignment.bottomCenter,
  16. EdgeInsets torchToggleMargin = const EdgeInsets.all(32),
  17. DetectionOutlineConfig? detectionOutline,
  18. 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();