QRScanConfig class

Configuration for QR scanner

Provides settings for camera behavior, supported formats, and performance tuning parameters.

Constructors

QRScanConfig.new({bool enableFlashlight = false, Set<BarcodeFormat> formats = defaultFormats, int detectionCooldown = defaultCooldown, bool autoFocus = true, bool enableVibration = true, bool enableAudio = false, double minConfidence = defaultMinConfidence, CameraControlConfig? cameraControl})
const
QRScanConfig.comprehensive()
Create a comprehensive configuration supporting all formats
factory
QRScanConfig.fromMap(Map<String, dynamic> map)
Create from map with validation
factory
QRScanConfig.performance()
Create a performance-optimized configuration
factory

Properties

autoFocus bool
Auto-focus enabled
final
cameraControl CameraControlConfig?
Advanced camera control configuration
final
detectionCooldown int
Detection cooldown in milliseconds (minimum 100ms, maximum 5000ms)
final
enableAudio bool
Enable audio feedback on detection
final
enableFlashlight bool
Enable flashlight on initialization (if supported)
final
enableVibration bool
Enable vibration feedback on detection (mobile only)
final
formats Set<BarcodeFormat>
Supported barcode formats for detection
final
hashCode int
The hash code for this object.
no setteroverride
isComprehensive bool
Check if configuration supports comprehensive format detection
no setter
isPerformanceOptimized bool
Check if configuration is optimized for performance
no setter
minConfidence double
Minimum confidence threshold for detection (0.0 to 1.0)
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

copyWith({bool? enableFlashlight, Set<BarcodeFormat>? formats, int? detectionCooldown, bool? autoFocus, bool? enableVibration, bool? enableAudio, double? minConfidence, CameraControlConfig? cameraControl}) QRScanConfig
Copy with new values
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() Map<String, dynamic>
Convert to map for platform channel
toString() String
A string representation of this object.
override
validate() List<String>
Validate configuration and return list of warnings

Operators

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

Constants

defaultCooldown → const int
Default configuration constants
defaultFormats → const Set<BarcodeFormat>
defaultMinConfidence → const double