QrcodeBarcodeScanner class

A class that handles scanning of QR codes and barcodes.

The QrcodeBarcodeScanner class listens to keyboard events to scan QR codes and barcodes. It uses a StreamController to listen to keyboard events and a DelayedActionHandler to handle delayed events.

Constructors

QrcodeBarcodeScanner.new({required ScannedCallback onScannedCallback})
Creates a new instance of QrcodeBarcodeScanner.

Properties

hashCode int
The hash code for this object.
no setterinherited
onScannedCallback ScannedCallback
The callback function to handle scanned barcodes.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

dispose() → void
Disposes the resources used by the QrcodeBarcodeScanner.
getPlatformVersion() Future<String?>
isKeyDown(RawKeyEvent event) bool
Returns true if the RawKeyEvent is a key down event.
isShift(LogicalKeyboardKey key) bool
Returns true if the LogicalKeyboardKey is the shift key.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onKeyEvent(String? readChar) → void
Handles a keyboard event by adding the read character to the _pressedKeys list.
toString() String
A string representation of this object.
inherited

Operators

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