BarcodeCapture class final
Barcodes found in one camera frame.
- Annotations
Constructors
-
BarcodeCapture({required List<
Barcode> barcodes, required Size imageSize, required DateTime time, CaptureSource source = CaptureSource.camera}) -
Creates a capture.
barcodesmust not be empty.const
Properties
- barcode → Barcode
-
The first barcode: the one to use when you expect a single code.
no setter
-
barcodes
→ List<
Barcode> -
The barcodes in the frame, at least one.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- imageSize → Size
-
Size of the camera frame, in its display orientation. Barcode positions
are in this coordinate space.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- source → CaptureSource
-
Where the barcodes came from: a camera frame, or an image given to
ScannerController.readImage. Positions of an image's barcodes are
not on screen.
final
- time → DateTime
-
When the frame was decoded.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
snapshot(
[Barcode? barcode]) → Future< Image?> -
barcode(defaultthis.barcode) cut out of the camera frame or the photo it was found in and straightened: a flat grayscale image with a little margin, its contrast stretched. Each call makes a new image, which the caller disposes. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited