JsQrCodeReader class

Barcode reader that uses jsQR library. jsQR supports only QR codes format.

Inheritance
Mixed in types

Constructors

JsQrCodeReader({required DivElement videoContainer})

Properties

frameInterval Duration
Timer used to capture frames to be analyzed
getter/setter pairinherited
hashCode int
The hash code for this object.
no setterinherited
isStarted bool
no setteroverride
localMediaStream MediaStream?
The video stream. Will be initialized later to see which camera needs to be used.
getter/setter pairinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
video VideoElement
finalinherited
videoContainer DivElement
finalinherited
videoHeight int
no setterinherited
videoWidth int
no setterinherited

Methods

attachStreamToVideo(MediaStream stream, VideoElement videoSource) Future<void>
override
detectBarcodeContinuously() Stream<Barcode?>
Starts scanning QR codes or barcodes
override
getSupportedTorchStates() Future<List<String>>
inherited
hasTorch() Future<bool>
Determine whether device has flash
inherited
initMediaStream(CameraFacing cameraFacing) Future<MediaStream?>
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
prepareVideoElement(VideoElement videoSource) → void
override
start({required CameraFacing cameraFacing, List<BarcodeFormat>? formats, Duration? detectionTimeout}) Future<void>
Starts streaming video
override
stop() Future<void>
Stops streaming video
inherited
stopDetectBarcodeContinuously() Future<void>
Stops scanning QR codes or barcodes
override
toggleTorch({required bool enabled}) Future<void>
Can enable or disable the flash if available
inherited
toString() String
A string representation of this object.
inherited

Operators

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