ScannerLayout class final

What an overlay needs to know, already in the coordinates of the BarcodeScanner widget.

Annotations

Constructors

ScannerLayout({required Size size, required Rect scanWindow, required List<VisibleBarcode> barcodes, required ScannerState state, required ScannerController controller, Rect? previewRect})
Creates a layout.
const

Properties

barcodes → List<VisibleBarcode>
The barcodes in view, in the order they came into view. A barcode stays a moment after the camera last read it, so that frames that miss it do not make it flicker.
final
controller → ScannerController
The controller, for buttons in the overlay.
final
hashCode → int
The hash code for this object.
no setterinherited
previewRect → Rect?
Where the whole camera preview lies in the widget; it may reach past the widget's edges. null until the preview shows.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
scanWindow → Rect
The scan window.
final
size → Size
Size of the scanner widget.
final
state → ScannerState
Camera state (torch, zoom, status).
final

Methods

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