DataScannerConfiguration<T> class

Holds the configuration for a DataScanner.

Constructors

DataScannerConfiguration({required List<VisionProcessor> processors, required List<Extractor<T>> extractors, OnExtracted<T>? onExtracted, dynamic onPermissionDenied()?, dynamic onError(String)?, dynamic onZoomChanged(double)?, 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})

Properties

detectionAreaHeight double
Height of the detection area in which elements should be detected. Defaults to 64.
final
detectionAreaMode DetectionAreaMode
Defines
final
detectionAreaWidth double?
Width of the detection area in which elements should be detected. Defaults to the maximum availale width of the widget minus a margin of 32 left and right.
final
detectionOutline DetectionOutlineConfig?
Configuration for displaying outlines around detected visuals. If nothing is set, no outlines will be displayed.
final
enableZoom bool
Enable zoom trough pinch.
final
extractors List<Extractor<T>>
Extractors to be used.
final
hashCode int
The hash code for this object.
no setterinherited
lowerHelper Widget?
If showOverlay is enabled, this widget will be displayed directly below the detection area.
final
onError → dynamic Function(String)?
Executed when any other CameraException is thrown. Good luck, because they have apparently been left completely undocumented :)
final
onExtracted OnExtracted<T>?
Callback to be called when text was extracted from an image.
final
onPermissionDenied → dynamic Function()?
Executed when the camera cannot be started due to lack of permissions.
final
onZoomChanged → dynamic Function(double)?
Executed when the zoom is changed.
final
processors List<VisionProcessor>
VisionProcessors to be used.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
showOverlay bool
Whether to show the scanner overlay. Defaults to true.
final
showTorchToggle bool
Whether to show the torch toggle. Defaults to false.
final
torchToggleAlignment Alignment
Where to position the torch toggle. Defaults to Alignment.bottomCenter
final
torchToggleMargin EdgeInsets
Outside spacing of the torch toggle.
final
upperHelper Widget?
If showOverlay is enabled, this widget will be displayed directly above the detection area.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited