StartOptions class

This class defines the different start options for the mobile scanner.

Constructors

StartOptions.new({required CameraFacing cameraDirection, required Size? cameraResolution, required DetectionSpeed detectionSpeed, required int detectionTimeoutMs, required List<BarcodeFormat> formats, required bool returnImage, required bool torchEnabled, required bool invertImage, required bool autoZoom})
Construct a new StartOptions instance.
const

Properties

autoZoom bool
Whether the camera should auto zoom if the detected code is to far from the camera.
final
cameraDirection CameraFacing
The direction for the camera.
final
cameraResolution Size?
The desired camera resolution for the scanner.
final
detectionSpeed DetectionSpeed
The detection speed for the scanner.
final
detectionTimeoutMs int
The detection timeout for the scanner, in milliseconds.
final
formats List<BarcodeFormat>
The barcode formats to detect.
final
hashCode int
The hash code for this object.
no setterinherited
invertImage bool
Invert image colors for analyzer to support white-on-black barcodes, which are not supported by MLKit.
final
returnImage bool
Whether the detected barcodes should provide their image data.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
torchEnabled bool
Whether the torch should be turned on when the scanner starts.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() Map<String, Object?>
Converts this object to a map.
toString() String
A string representation of this object.
inherited

Operators

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