CodeScannerCameraListener class
Create a camera listener to plug it with any camera controller, to scan for codes
Constructors
-
CodeScannerCameraListener(CameraController controller, {List<
BarcodeFormat> formats = const [BarcodeFormat.all], Duration interval = const Duration(milliseconds: 500), bool once = false, void onScan(String? code, Barcode details, CodeScannerCameraListener listener)?, void onScanAll(List<Barcode> barcodes, CodeScannerCameraListener listener)?, void onError(Object error, CodeScannerCameraListener listener)?})
Properties
- controller → CameraController
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
imageController
→ StreamController<
CameraImage> -
final
- once → bool
-
final
- onError → (void Function(Object error, CodeScannerCameraListener listener)?)
-
final
- onScan → (void Function(String? code, Barcode details, CodeScannerCameraListener listener)?)
-
final
-
onScanAll
→ (void Function(List<
Barcode> barcodes, CodeScannerCameraListener listener)?) -
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scanner → BarcodeScanner
-
final
Methods
-
dispose(
) → Future< void> -
Alias of the
.stop()
method, for consistency with the flutter environment. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
start(
) → void -
stop(
) → Future< void> - Stops the camera image controller and image stream.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited