BarcodeScanner class abstract

Base for custom bar code scanners

Capabilities: Scanners expose their capabilities via the properties getter.

Flow:

Constructors

BarcodeScanner()

Properties

controller BarcodeScannerController
The controller controlling the scanner. Will not be called until configure completes
no setter
hashCode int
The hash code for this object.
no setterinherited
properties ScannerProperties
The properties of this scanner. This getter can be called a lot, ensure it is performant
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

buildUI(ScannerConfiguration configuration, BuildContext context) Widget?
Called a containing widget needs to display the UI of this scanner Will not be called if properties.hasUI is false.
configure({required ScannerConfiguration configuration, required ValueChanged<BarcodeScanResult> onScan}) Future<void>
Configures the scanner with the provided parameters
dispose() → void
Called when the scanner is no longer required
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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