InternalTorchDetection mixin

Mixin for libraries that don't have built-in torch support

Superclass Constraints
Mixin Applications

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

Operators

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